aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-07-05 18:28:13 +0200
committerTristan Gingold <tgingold@free.fr>2021-07-05 18:28:13 +0200
commitd2fca803b1deefc37fe35cd1fa845125acec6034 (patch)
tree1e81562ba4fa30438b0b5a93e53c22ce8b74a2db /testsuite
parent4e14fae9d15aff52f2c6b57c77e69907666a6d99 (diff)
downloadghdl-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.vhdl17
-rwxr-xr-xtestsuite/gna/bug0124/testsuite.sh7
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"