diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-01-15 17:03:04 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-01-15 17:03:04 +0100 |
commit | ea28fa56f21afb8a40a84151bdaba3f33ddb145d (patch) | |
tree | 07cf6fffc6c0b642773ecbc652a87e3eddd28b37 | |
parent | 126333c7699f7e7e164118e4557472edf19cf61c (diff) | |
download | ghdl-ea28fa56f21afb8a40a84151bdaba3f33ddb145d.tar.gz ghdl-ea28fa56f21afb8a40a84151bdaba3f33ddb145d.tar.bz2 ghdl-ea28fa56f21afb8a40a84151bdaba3f33ddb145d.zip |
testsuite/synth: add a test for #1949
-rw-r--r-- | testsuite/synth/issue1949/test.vhdl | 12 | ||||
-rwxr-xr-x | testsuite/synth/issue1949/testsuite.sh | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/synth/issue1949/test.vhdl b/testsuite/synth/issue1949/test.vhdl new file mode 100644 index 000000000..18f3086fb --- /dev/null +++ b/testsuite/synth/issue1949/test.vhdl @@ -0,0 +1,12 @@ +package gen_pkg is + generic (type T); +end gen_pkg; + +entity test is +end entity test; + +architecture simple of test is + package pkg1 is new work.gen_pkg generic map (t => integer); + package pkg2 is new work.gen_pkg generic map (t => integer); +begin +end architecture simple; diff --git a/testsuite/synth/issue1949/testsuite.sh b/testsuite/synth/issue1949/testsuite.sh new file mode 100755 index 000000000..1bd00c114 --- /dev/null +++ b/testsuite/synth/issue1949/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 +synth_only test + +echo "Test successful" |