diff options
-rw-r--r-- | testsuite/gna/issue471/a.vhdl | 10 | ||||
-rw-r--r-- | testsuite/gna/issue471/b.vhdl | 10 | ||||
-rw-r--r-- | testsuite/gna/issue471/p1.vhdl | 5 | ||||
-rwxr-xr-x | testsuite/gna/issue471/testsuite.sh | 14 |
4 files changed, 39 insertions, 0 deletions
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" |