From e15f01013928d7023a1f6d4bc93aa59fef9bffcf Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 28 Sep 2022 06:32:39 +0200 Subject: testsuite/gna: add a test for #2201 --- testsuite/gna/issue2201/repro.vhdl | 30 ++++++++++++++++++++++++++++++ testsuite/gna/issue2201/testsuite.sh | 9 +++++++++ 2 files changed, 39 insertions(+) create mode 100644 testsuite/gna/issue2201/repro.vhdl create mode 100755 testsuite/gna/issue2201/testsuite.sh 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" -- cgit v1.2.3