aboutsummaryrefslogtreecommitdiffstats
path: root/tests/various/bug3462.ys
diff options
context:
space:
mode:
Diffstat (limited to 'tests/various/bug3462.ys')
-rw-r--r--tests/various/bug3462.ys12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/various/bug3462.ys b/tests/various/bug3462.ys
new file mode 100644
index 000000000..c85dc9470
--- /dev/null
+++ b/tests/various/bug3462.ys
@@ -0,0 +1,12 @@
+read_verilog <<EOT
+module top();
+ wire array[0:0];
+ wire out;
+ sub #(.d(1)) inst(
+ .in(array[0]),
+ .out(out)
+ );
+endmodule
+EOT
+
+hierarchy -top top -libdir .