summaryrefslogtreecommitdiff
path: root/testsuite/gna/bug017/call4.vhdl
diff options
context:
space:
mode:
authorTristan Gingold2015-09-02 18:21:33 +0200
committerTristan Gingold2015-09-02 18:21:33 +0200
commita779d6b3b5f10cbee6690ae4ff7aa43b65caf5e3 (patch)
treec850005a41589ef82fc98abaac904c415acd9493 /testsuite/gna/bug017/call4.vhdl
parent133686da496f0592da76a45361e70ac8d6c482ea (diff)
downloadghdl-a779d6b3b5f10cbee6690ae4ff7aa43b65caf5e3.tar.gz
ghdl-a779d6b3b5f10cbee6690ae4ff7aa43b65caf5e3.tar.bz2
ghdl-a779d6b3b5f10cbee6690ae4ff7aa43b65caf5e3.zip
Add bug017.
Diffstat (limited to 'testsuite/gna/bug017/call4.vhdl')
-rw-r--r--testsuite/gna/bug017/call4.vhdl28
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gna/bug017/call4.vhdl b/testsuite/gna/bug017/call4.vhdl
new file mode 100644
index 0000000..e2d600c
--- /dev/null
+++ b/testsuite/gna/bug017/call4.vhdl
@@ -0,0 +1,28 @@
+entity call4 is
+end;
+
+architecture behav of call4 is
+ procedure p (n : natural) is
+ procedure p2 (m : natural) is
+ begin
+ for i in 1 to m loop
+ report "hello 2";
+ wait for 1 ns;
+ end loop;
+ end p2;
+ 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;