diff options
Diffstat (limited to 'testsuite/gna/bug017/call3.vhdl')
-rw-r--r-- | testsuite/gna/bug017/call3.vhdl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/gna/bug017/call3.vhdl b/testsuite/gna/bug017/call3.vhdl new file mode 100644 index 000000000..43d5b0b29 --- /dev/null +++ b/testsuite/gna/bug017/call3.vhdl @@ -0,0 +1,29 @@ +entity call3 is +end; + +architecture behav of call3 is + procedure p2 (n : natural) is + begin + for i in 1 to n loop + report "hello 2"; + wait for 1 ns; + end loop; + end p2; + + procedure p (n : natural) is + begin + for i in 1 to n loop + p2 (i); + report "hello 1"; + wait for 1 ns; + end loop; + end p; +begin + process + begin + p (5); + report "SUCCESS"; + wait; + end process; + +end behav; |