aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/synth/issue1971/repro_bit_oper.vhdl8
-rwxr-xr-xtestsuite/synth/issue1971/testsuite.sh8
2 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/synth/issue1971/repro_bit_oper.vhdl b/testsuite/synth/issue1971/repro_bit_oper.vhdl
new file mode 100644
index 000000000..d5daa14cc
--- /dev/null
+++ b/testsuite/synth/issue1971/repro_bit_oper.vhdl
@@ -0,0 +1,8 @@
+entity repro_bit_oper is
+ port (x : in bit; y : out boolean);
+end;
+
+architecture a of repro_bit_oper is
+begin
+ y <= true when x else false;
+end;
diff --git a/testsuite/synth/issue1971/testsuite.sh b/testsuite/synth/issue1971/testsuite.sh
new file mode 100755
index 000000000..61a429361
--- /dev/null
+++ b/testsuite/synth/issue1971/testsuite.sh
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+GHDL_STD_FLAGS=--std=08
+synth_only repro_bit_oper
+
+echo "Test successful"