From 0b472177e185420144c8f03f227f98f4e06f289d Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 1 Dec 2017 04:34:57 +0100 Subject: Testcase for #471 --- testsuite/gna/issue471/a.vhdl | 10 ++++++++++ testsuite/gna/issue471/b.vhdl | 10 ++++++++++ testsuite/gna/issue471/p1.vhdl | 5 +++++ testsuite/gna/issue471/testsuite.sh | 14 ++++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 testsuite/gna/issue471/a.vhdl create mode 100644 testsuite/gna/issue471/b.vhdl create mode 100644 testsuite/gna/issue471/p1.vhdl create mode 100755 testsuite/gna/issue471/testsuite.sh (limited to 'testsuite/gna/issue471') diff --git a/testsuite/gna/issue471/a.vhdl b/testsuite/gna/issue471/a.vhdl new file mode 100644 index 000000000..e638ba98f --- /dev/null +++ b/testsuite/gna/issue471/a.vhdl @@ -0,0 +1,10 @@ +use work.b.all; + +package a is + + type type_a is record + something : type_b; + end record; + +end package; + diff --git a/testsuite/gna/issue471/b.vhdl b/testsuite/gna/issue471/b.vhdl new file mode 100644 index 000000000..c1bf4affd --- /dev/null +++ b/testsuite/gna/issue471/b.vhdl @@ -0,0 +1,10 @@ +use work.a.all; + +package b is + + type type_b is record + something : type_a; + end record; + +end package; + diff --git a/testsuite/gna/issue471/p1.vhdl b/testsuite/gna/issue471/p1.vhdl new file mode 100644 index 000000000..b85f5e390 --- /dev/null +++ b/testsuite/gna/issue471/p1.vhdl @@ -0,0 +1,5 @@ +use work.p1.all; + +package p1 is + constant c : natural := 5; +end p1; diff --git a/testsuite/gna/issue471/testsuite.sh b/testsuite/gna/issue471/testsuite.sh new file mode 100755 index 000000000..88e008257 --- /dev/null +++ b/testsuite/gna/issue471/testsuite.sh @@ -0,0 +1,14 @@ +#! /bin/sh + +. ../../testenv.sh + +$GHDL -i a.vhdl b.vhdl +analyze_failure a.vhdl +analyze_failure b.vhdl + +$GHDL -i p1.vhdl +analyze_failure p1.vhdl + +clean + +echo "Test successful" -- cgit v1.2.3