aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"