aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna')
-rw-r--r--testsuite/gna/issue1500/test.vhdl25
-rwxr-xr-xtestsuite/gna/issue1500/testsuite.sh10
2 files changed, 35 insertions, 0 deletions
diff --git a/testsuite/gna/issue1500/test.vhdl b/testsuite/gna/issue1500/test.vhdl
new file mode 100644
index 000000000..a2baa3538
--- /dev/null
+++ b/testsuite/gna/issue1500/test.vhdl
@@ -0,0 +1,25 @@
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+
+entity test is
+end test;
+
+architecture test of test is
+
+ subtype byte is unsigned (7 downto 0);
+ type arr_t is array (0 to 1) of byte;
+ signal arr: arr_t;
+
+begin
+
+ process is
+ begin
+ arr <= (B"11111111" others => B"00000000");
+ -- ^^^^ no comma
+ wait for 1 ns;
+ report to_string(arr(0)); -- reports 00000000
+ wait;
+ end process;
+
+end test;
diff --git a/testsuite/gna/issue1500/testsuite.sh b/testsuite/gna/issue1500/testsuite.sh
new file mode 100755
index 000000000..84ddbddba
--- /dev/null
+++ b/testsuite/gna/issue1500/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+export GHDL_STD_FLAGS=--std=08
+analyze_failure test.vhdl
+
+clean
+
+echo "Test successful"