From bd320d6260009f7d625bb70954d84bdec32b7917 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 24 Nov 2015 07:06:38 +0100 Subject: Add reproducer for previous crash. --- testsuite/gna/bug027/comp.vhdl | 7 +++++++ testsuite/gna/bug027/repro.vhdl | 12 ++++++++++++ testsuite/gna/bug027/testsuite.sh | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 testsuite/gna/bug027/comp.vhdl create mode 100644 testsuite/gna/bug027/repro.vhdl create mode 100755 testsuite/gna/bug027/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/gna/bug027/comp.vhdl b/testsuite/gna/bug027/comp.vhdl new file mode 100644 index 0000000..be42317 --- /dev/null +++ b/testsuite/gna/bug027/comp.vhdl @@ -0,0 +1,7 @@ +package pkg is + component comp is + end component; +end pkg; + +entity comp is +end comp; diff --git a/testsuite/gna/bug027/repro.vhdl b/testsuite/gna/bug027/repro.vhdl new file mode 100644 index 0000000..0085a07 --- /dev/null +++ b/testsuite/gna/bug027/repro.vhdl @@ -0,0 +1,12 @@ +use work.pkg.all; +use work.all; + +entity repro is +end repro; + +architecture behav of repro is + component comp is + end component; +begin + c : comp; +end behav; diff --git a/testsuite/gna/bug027/testsuite.sh b/testsuite/gna/bug027/testsuite.sh new file mode 100755 index 0000000..ab68f83 --- /dev/null +++ b/testsuite/gna/bug027/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze comp.vhdl +analyze repro.vhdl +clean + +echo "Test successful" -- cgit