From a4a922a1dc053fdd382cd942311bd50d8808799d Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 23 Jul 2021 18:24:24 +0200 Subject: testsuite/gna: add a test for previous commit --- testsuite/gna/bug0100/inst2.vhdl | 11 +++++++++++ testsuite/gna/bug0100/testsuite.sh | 1 + 2 files changed, 12 insertions(+) create mode 100644 testsuite/gna/bug0100/inst2.vhdl diff --git a/testsuite/gna/bug0100/inst2.vhdl b/testsuite/gna/bug0100/inst2.vhdl new file mode 100644 index 000000000..4b7b8a6f6 --- /dev/null +++ b/testsuite/gna/bug0100/inst2.vhdl @@ -0,0 +1,11 @@ +entity inst2 is +end; + +architecture behav of inst2 is +begin + gen: if False b = 0 generate + component cmp is + end component; + begin + end generate; +end behav; diff --git a/testsuite/gna/bug0100/testsuite.sh b/testsuite/gna/bug0100/testsuite.sh index 00bf90caf..2e9d2203e 100755 --- a/testsuite/gna/bug0100/testsuite.sh +++ b/testsuite/gna/bug0100/testsuite.sh @@ -29,6 +29,7 @@ analyze_failure compon.vhdl analyze_failure --force-analysis varcomp.vhdl #analyze_failure --force-analysis name1.vhdl #analyze_failure --force-analysis name2.vhdl +analyze_failure --force-analysis inst2.vhdl if analyze_failure --force-analysis notype1.vhdl 2>&1 | grep -q "indexed name"; then : -- cgit v1.2.3