diff options
Diffstat (limited to 'testsuite/gna')
-rw-r--r-- | testsuite/gna/issue2171/test1.vhdl | 31 | ||||
-rwxr-xr-x | testsuite/gna/issue2171/testsuite.sh | 10 |
2 files changed, 41 insertions, 0 deletions
diff --git a/testsuite/gna/issue2171/test1.vhdl b/testsuite/gna/issue2171/test1.vhdl new file mode 100644 index 000000000..daca3322d --- /dev/null +++ b/testsuite/gna/issue2171/test1.vhdl @@ -0,0 +1,31 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity test is +end entity; + +architecture rtl of test is + signal sig : std_logic; +begin +end architecture; + +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity test1 is +end entity; + +architecture rtl of test1 is +begin + g_test : for i in 0 to 1 generate + begin + i_test : entity work.test; + end generate; + p_proc : process + alias sig is <<signal g_test(0).i_test.sig : std_logic>>; + begin + wait; + end process; +end architecture; diff --git a/testsuite/gna/issue2171/testsuite.sh b/testsuite/gna/issue2171/testsuite.sh new file mode 100755 index 000000000..d26e6c9ef --- /dev/null +++ b/testsuite/gna/issue2171/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +run "$GHDL" -s $GHDL_STD_FLAGS test1.vhdl + +clean + +echo "Test successful" |