diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-07-05 18:28:13 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-07-05 18:28:13 +0200 |
commit | d2fca803b1deefc37fe35cd1fa845125acec6034 (patch) | |
tree | 1e81562ba4fa30438b0b5a93e53c22ce8b74a2db /testsuite | |
parent | 4e14fae9d15aff52f2c6b57c77e69907666a6d99 (diff) | |
download | ghdl-d2fca803b1deefc37fe35cd1fa845125acec6034.tar.gz ghdl-d2fca803b1deefc37fe35cd1fa845125acec6034.tar.bz2 ghdl-d2fca803b1deefc37fe35cd1fa845125acec6034.zip |
testsuite/gna: add a test for previous commit
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/bug0124/repro.vhdl | 17 | ||||
-rwxr-xr-x | testsuite/gna/bug0124/testsuite.sh | 7 |
2 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/bug0124/repro.vhdl b/testsuite/gna/bug0124/repro.vhdl new file mode 100644 index 000000000..179535cd4 --- /dev/null +++ b/testsuite/gna/bug0124/repro.vhdl @@ -0,0 +1,17 @@ +entity repro1 is + generic (type t); +end repro1; + +architecture behav of repro1 is +begin +end behav; + +entity repro is + generic (type t); +end repro; + +architecture behav of repro is +begin + inst: entity work.repro1 + generic map (t => t); +end behav; diff --git a/testsuite/gna/bug0124/testsuite.sh b/testsuite/gna/bug0124/testsuite.sh new file mode 100755 index 000000000..772efc509 --- /dev/null +++ b/testsuite/gna/bug0124/testsuite.sh @@ -0,0 +1,7 @@ +#! /bin/sh + +. ../../testenv.sh + +$GHDL -s --std=08 repro.vhdl + +echo "Test successful" |