From 9207342e0b89ba07c123eb5e20a360035ad5ebb0 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 29 Oct 2020 07:59:07 +0100 Subject: testsuite/gna: add testcase for #1500 --- testsuite/gna/issue1500/test.vhdl | 25 +++++++++++++++++++++++++ testsuite/gna/issue1500/testsuite.sh | 10 ++++++++++ 2 files changed, 35 insertions(+) create mode 100644 testsuite/gna/issue1500/test.vhdl create mode 100755 testsuite/gna/issue1500/testsuite.sh 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" -- cgit v1.2.3