aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/bug093/repro.vhdl10
-rwxr-xr-xtestsuite/gna/bug093/testsuite.sh11
2 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/bug093/repro.vhdl b/testsuite/gna/bug093/repro.vhdl
new file mode 100644
index 000000000..14ec21d2a
--- /dev/null
+++ b/testsuite/gna/bug093/repro.vhdl
@@ -0,0 +1,10 @@
+entity repro is
+end repro;
+
+architecture behav of repro is
+ constant a : boolean := True;
+ constant b : boolean := False;
+ constant c : boolean := False;
+begin
+ assert (a and b) = c severity failure;
+end behav;
diff --git a/testsuite/gna/bug093/testsuite.sh b/testsuite/gna/bug093/testsuite.sh
new file mode 100755
index 000000000..8d22a2073
--- /dev/null
+++ b/testsuite/gna/bug093/testsuite.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+export GHDL_STD_FLAGS=--std=08
+analyze repro.vhdl
+elab_simulate repro
+
+clean
+
+echo "Test successful"