aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/bug080/impurefunc.vhdl11
-rwxr-xr-xtestsuite/gna/bug080/testsuite.sh9
2 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/gna/bug080/impurefunc.vhdl b/testsuite/gna/bug080/impurefunc.vhdl
new file mode 100644
index 000000000..0b83b96e2
--- /dev/null
+++ b/testsuite/gna/bug080/impurefunc.vhdl
@@ -0,0 +1,11 @@
+package impurefunc is
+ signal a: bit;
+ impure function impure_func return boolean;
+end package;
+package body impurefunc is
+ impure function impure_func return boolean is
+ begin
+ a <= '1';
+ return FALSE;
+ end function;
+end package body;
diff --git a/testsuite/gna/bug080/testsuite.sh b/testsuite/gna/bug080/testsuite.sh
new file mode 100755
index 000000000..b0ff1b2b8
--- /dev/null
+++ b/testsuite/gna/bug080/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure impurefunc.vhdl
+
+clean
+
+echo "Test successful"