aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug017/ret1.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/bug017/ret1.vhdl')
-rw-r--r--testsuite/gna/bug017/ret1.vhdl25
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/gna/bug017/ret1.vhdl b/testsuite/gna/bug017/ret1.vhdl
new file mode 100644
index 000000000..2ff937d49
--- /dev/null
+++ b/testsuite/gna/bug017/ret1.vhdl
@@ -0,0 +1,25 @@
+entity ret1 is
+end;
+
+architecture behav of ret1 is
+ procedure p (n : natural) is
+ variable i : natural := 0;
+ begin
+ loop
+ report "hello 1";
+ wait for 1 ns;
+ if i = n then
+ return;
+ end if;
+ i := i + 1;
+ end loop;
+ end p;
+begin
+ process
+ begin
+ p (5);
+ report "SUCCESS: hello3";
+ wait;
+ end process;
+
+end behav;