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