diff options
-rw-r--r-- | testsuite/gna/bug0123/repro.vhdl | 10 | ||||
-rwxr-xr-x | testsuite/gna/bug0123/testsuite.sh | 16 |
2 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/gna/bug0123/repro.vhdl b/testsuite/gna/bug0123/repro.vhdl new file mode 100644 index 000000000..a611f03a7 --- /dev/null +++ b/testsuite/gna/bug0123/repro.vhdl @@ -0,0 +1,10 @@ +entity repro is +end; + +architecture behav of repro is + type mem_t is array (natural range <>) of bit_vector (3 downto 0); + constant cst : mem_t := (1 => "0000", + 2 => "0001", + 3 => "00" & "01"); +begin +end behav; diff --git a/testsuite/gna/bug0123/testsuite.sh b/testsuite/gna/bug0123/testsuite.sh new file mode 100755 index 000000000..baeedcc88 --- /dev/null +++ b/testsuite/gna/bug0123/testsuite.sh @@ -0,0 +1,16 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze repro.vhdl +elab_simulate repro + +clean + +export GHDL_STD_FLAGS=--std=08 +analyze repro.vhdl +elab_simulate repro + +clean + +echo "Test successful" |