diff options
Diffstat (limited to 'tests/verilog/for_decl_no_init.ys')
-rw-r--r-- | tests/verilog/for_decl_no_init.ys | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/verilog/for_decl_no_init.ys b/tests/verilog/for_decl_no_init.ys new file mode 100644 index 000000000..68c1584e0 --- /dev/null +++ b/tests/verilog/for_decl_no_init.ys @@ -0,0 +1,9 @@ +logger -expect error "For loop variable declaration is missing initialization!" 1 +read_verilog -sv <<EOT +module top; + integer z; + initial + for (integer i; i < 10; i = i + 1) + z = i; +endmodule +EOT |