summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/ticket56/bug.vhdl15
-rwxr-xr-xtestsuite/gna/ticket56/testsuite.sh9
2 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/ticket56/bug.vhdl b/testsuite/gna/ticket56/bug.vhdl
new file mode 100644
index 0000000..43b3ab0
--- /dev/null
+++ b/testsuite/gna/ticket56/bug.vhdl
@@ -0,0 +1,15 @@
+entity test is
+end entity;
+
+architecture a of test is
+ function fun(var : boolean) return boolean is
+ begin
+ return var;
+ end function;
+begin
+ main : process
+ constant c : boolean := fun;
+ begin
+ wait;
+ end process;
+end architecture;
diff --git a/testsuite/gna/ticket56/testsuite.sh b/testsuite/gna/ticket56/testsuite.sh
new file mode 100755
index 0000000..fada702
--- /dev/null
+++ b/testsuite/gna/ticket56/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure bug.vhdl
+
+clean
+
+echo "Test successful"