diff options
Diffstat (limited to 'tests/simple/local_loop_var.sv')
-rw-r--r-- | tests/simple/local_loop_var.sv | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/simple/local_loop_var.sv b/tests/simple/local_loop_var.sv new file mode 100644 index 000000000..42860e218 --- /dev/null +++ b/tests/simple/local_loop_var.sv @@ -0,0 +1,11 @@ +module local_loop_top(out); + output integer out; + initial begin + integer i; + for (i = 0; i < 5; i = i + 1) + if (i == 0) + out = 1; + else + out += 2 ** i; + end +endmodule |