diff options
-rw-r--r-- | testsuite/synth/issue2084/bug.vhdl | 15 | ||||
-rwxr-xr-x | testsuite/synth/issue2084/testsuite.sh | 8 |
2 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/synth/issue2084/bug.vhdl b/testsuite/synth/issue2084/bug.vhdl new file mode 100644 index 000000000..847ac0f1b --- /dev/null +++ b/testsuite/synth/issue2084/bug.vhdl @@ -0,0 +1,15 @@ +library IEEE; +use IEEE.std_logic_1164.all; + +entity bug is + port ( + src : in std_ulogic_vector(31 downto 0) + ); +end bug; + +architecture rtl of bug is + type array_t is array(0 to 0) of src'subtype; + signal s : array_t; +begin + +end architecture; diff --git a/testsuite/synth/issue2084/testsuite.sh b/testsuite/synth/issue2084/testsuite.sh new file mode 100755 index 000000000..c355095b7 --- /dev/null +++ b/testsuite/synth/issue2084/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 +synth_only bug + +echo "Test successful" |