summaryrefslogtreecommitdiff
path: root/testsuite/gna/ticket54
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/ticket54')
-rw-r--r--testsuite/gna/ticket54/test.vhdl28
-rwxr-xr-xtestsuite/gna/ticket54/testsuite.sh9
2 files changed, 37 insertions, 0 deletions
diff --git a/testsuite/gna/ticket54/test.vhdl b/testsuite/gna/ticket54/test.vhdl
new file mode 100644
index 0000000..7254942
--- /dev/null
+++ b/testsuite/gna/ticket54/test.vhdl
@@ -0,0 +1,28 @@
+entity test is
+end entity;
+
+architecture a of test is
+ procedure check(value : boolean) is
+ begin
+ assert value;
+ end procedure;
+begin
+
+ main : process
+ procedure do_some_other_stuff is
+ begin
+ check(false);
+ end procedure;
+
+ procedure do_stuff is
+ begin
+ check(true);
+ do_some_other_stuff;
+ check(true);
+ end procedure;
+ begin
+ check(true);
+ do_stuff;
+ wait;
+ end process;
+end architecture;
diff --git a/testsuite/gna/ticket54/testsuite.sh b/testsuite/gna/ticket54/testsuite.sh
new file mode 100755
index 0000000..c2af839
--- /dev/null
+++ b/testsuite/gna/ticket54/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze test.vhdl
+elab_simulate test
+clean
+
+echo "Test successful"