aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-09-28 06:32:39 +0200
committerTristan Gingold <tgingold@free.fr>2022-09-28 06:32:39 +0200
commite15f01013928d7023a1f6d4bc93aa59fef9bffcf (patch)
tree48ce2eb5c1c77e20682088f63c758c4058890fb4
parent9f6bcc1bd1ecf9641df73925df14da793c544fe7 (diff)
downloadghdl-e15f01013928d7023a1f6d4bc93aa59fef9bffcf.tar.gz
ghdl-e15f01013928d7023a1f6d4bc93aa59fef9bffcf.tar.bz2
ghdl-e15f01013928d7023a1f6d4bc93aa59fef9bffcf.zip
testsuite/gna: add a test for #2201
-rw-r--r--testsuite/gna/issue2201/repro.vhdl30
-rwxr-xr-xtestsuite/gna/issue2201/testsuite.sh9
2 files changed, 39 insertions, 0 deletions
diff --git a/testsuite/gna/issue2201/repro.vhdl b/testsuite/gna/issue2201/repro.vhdl
new file mode 100644
index 000000000..35dd97169
--- /dev/null
+++ b/testsuite/gna/issue2201/repro.vhdl
@@ -0,0 +1,30 @@
+entity repro_ch is
+ port (a : out bit);
+end repro_ch;
+
+architecture syn of repro_ch is
+begin
+ a <= '1';
+end syn;
+
+entity repro is
+ port (b : out bit);
+end repro;
+
+architecture syn of repro is
+ component repro_ch is
+ port (a : out bit);
+ end component;
+begin
+ dut: repro_ch
+ port map (a => b);
+end syn;
+
+configuration repro_cfg of repro is
+ for syn
+ for dut : repro_ch
+ for syn
+ end for;
+ end for;
+ end for;
+end configuration;
diff --git a/testsuite/gna/issue2201/testsuite.sh b/testsuite/gna/issue2201/testsuite.sh
new file mode 100755
index 000000000..5defdcf1e
--- /dev/null
+++ b/testsuite/gna/issue2201/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure repro.vhdl
+
+clean
+
+echo "Test successful"