diff options
Diffstat (limited to 'testsuite/gna/bug017/if2.vhdl')
| -rw-r--r-- | testsuite/gna/bug017/if2.vhdl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/gna/bug017/if2.vhdl b/testsuite/gna/bug017/if2.vhdl new file mode 100644 index 000000000..7c25c8131 --- /dev/null +++ b/testsuite/gna/bug017/if2.vhdl @@ -0,0 +1,23 @@ +entity if2 is +end; + +architecture behav of if2 is +begin + process + variable i : natural := 0; + begin + report "hello"; + loop + if i = 10 then + exit; + else + report "hello2"; + wait for 1 ns; + end if; + i := i + 1; + end loop; + report "SUCCESS"; + wait; + end process; + +end behav; |
