diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-02-25 07:35:22 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-02-25 07:35:22 +0100 |
commit | 807570488884a51ed60c38f4ce0853b8e1191e3c (patch) | |
tree | b6bdcede56eaadacba7e16bc703344548713c22b /testsuite/gna | |
parent | 168286ce3158582f80fdd0c725bd48611033638f (diff) | |
download | ghdl-807570488884a51ed60c38f4ce0853b8e1191e3c.tar.gz ghdl-807570488884a51ed60c38f4ce0853b8e1191e3c.tar.bz2 ghdl-807570488884a51ed60c38f4ce0853b8e1191e3c.zip |
Add testcase for #535
Diffstat (limited to 'testsuite/gna')
-rw-r--r-- | testsuite/gna/issue535/bug.vhdl | 12 | ||||
-rwxr-xr-x | testsuite/gna/issue535/testsuite.sh | 10 |
2 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/gna/issue535/bug.vhdl b/testsuite/gna/issue535/bug.vhdl new file mode 100644 index 000000000..8c6fcb1a1 --- /dev/null +++ b/testsuite/gna/issue535/bug.vhdl @@ -0,0 +1,12 @@ +package pkg1 is + generic ( + type value_t); +end package; + +package pkg2 is + generic ( + type value_t); + + package pkg1_inst is new work.pkg1 generic map (value_t => value_t); + use pkg1_inst.all; +end; diff --git a/testsuite/gna/issue535/testsuite.sh b/testsuite/gna/issue535/testsuite.sh new file mode 100755 index 000000000..e880f4010 --- /dev/null +++ b/testsuite/gna/issue535/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze bug.vhdl + +clean + +echo "Test successful" |