aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug027
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2015-11-24 07:06:38 +0100
committerTristan Gingold <gingold@adacore.com>2015-11-25 03:39:08 +0100
commitbd320d6260009f7d625bb70954d84bdec32b7917 (patch)
tree75e7e058c6de74da7506574648837985f57c2a34 /testsuite/gna/bug027
parentd8667fd831a8281cdbc362e129a95db78010ffbc (diff)
downloadghdl-bd320d6260009f7d625bb70954d84bdec32b7917.tar.gz
ghdl-bd320d6260009f7d625bb70954d84bdec32b7917.tar.bz2
ghdl-bd320d6260009f7d625bb70954d84bdec32b7917.zip
Add reproducer for previous crash.
Diffstat (limited to 'testsuite/gna/bug027')
-rw-r--r--testsuite/gna/bug027/comp.vhdl7
-rw-r--r--testsuite/gna/bug027/repro.vhdl12
-rwxr-xr-xtestsuite/gna/bug027/testsuite.sh9
3 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gna/bug027/comp.vhdl b/testsuite/gna/bug027/comp.vhdl
new file mode 100644
index 000000000..be4231750
--- /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 000000000..0085a0722
--- /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 000000000..ab68f83c1
--- /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"