diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-08-11 17:37:02 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-08-11 17:37:02 +0200 |
commit | 79a1eba581b60bbe94b0cd8fbbbd002d61e698f6 (patch) | |
tree | 34f3648c8e1ec2525466b670344e1dbf44505790 | |
parent | fe7533020065c4fce5c74030769cb1ef81ec2ddf (diff) | |
download | ghdl-79a1eba581b60bbe94b0cd8fbbbd002d61e698f6.tar.gz ghdl-79a1eba581b60bbe94b0cd8fbbbd002d61e698f6.tar.bz2 ghdl-79a1eba581b60bbe94b0cd8fbbbd002d61e698f6.zip |
testsuite/gna: add a test for #2172
-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" |