aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1493
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue1493')
-rw-r--r--testsuite/gna/issue1493/test.vhdl19
-rwxr-xr-xtestsuite/gna/issue1493/testsuite.sh11
2 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/gna/issue1493/test.vhdl b/testsuite/gna/issue1493/test.vhdl
new file mode 100644
index 000000000..d7d921c50
--- /dev/null
+++ b/testsuite/gna/issue1493/test.vhdl
@@ -0,0 +1,19 @@
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+
+entity test is
+end test;
+
+architecture test of test is
+
+ subtype word is unsigned (15 downto 0);
+ subtype byte is unsigned (7 downto 0);
+
+ signal w: word;
+ signal b: byte;
+ signal mask: byte;
+
+begin
+ w <= (byte'range => (b and mask), others => '1');
+end test;
diff --git a/testsuite/gna/issue1493/testsuite.sh b/testsuite/gna/issue1493/testsuite.sh
new file mode 100755
index 000000000..1d84c0f57
--- /dev/null
+++ b/testsuite/gna/issue1493/testsuite.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+export GHDL_STD_FLAGS=--std=08
+analyze test.vhdl
+elab_simulate test
+
+clean
+
+echo "Test successful"