diff options
Diffstat (limited to 'tests/simple/unnamed_block_decl.sv')
-rw-r--r-- | tests/simple/unnamed_block_decl.sv | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/simple/unnamed_block_decl.sv b/tests/simple/unnamed_block_decl.sv new file mode 100644 index 000000000..e81b457a8 --- /dev/null +++ b/tests/simple/unnamed_block_decl.sv @@ -0,0 +1,17 @@ +module top(z); + output integer z; + initial begin + integer x; + x = 1; + begin + integer y; + y = x + 1; + begin + integer z; + z = y + 1; + y = z + 1; + end + z = y + 1; + end + end +endmodule |