Add test for bug 3462

This commit is contained in:
Miodrag Milanovic 2022-08-29 10:10:09 +02:00
parent 4bc1e1d1f1
commit 5b5fe76966
2 changed files with 15 additions and 0 deletions

12
tests/various/bug3462.ys Normal file
View File

@ -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 .

3
tests/various/sub.v Normal file
View File

@ -0,0 +1,3 @@
module sub #(parameter d=1) (input in, output out);
assign out = in;
endmodule