diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/issue1362/ent.vhdl | 13 | ||||
-rw-r--r-- | testsuite/gna/issue1362/liba.vhdl | 3 | ||||
-rw-r--r-- | testsuite/gna/issue1362/libb.vhdl | 3 | ||||
-rwxr-xr-x | testsuite/gna/issue1362/testsuite.sh | 9 |
4 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gna/issue1362/ent.vhdl b/testsuite/gna/issue1362/ent.vhdl new file mode 100644 index 000000000..4f082749e --- /dev/null +++ b/testsuite/gna/issue1362/ent.vhdl @@ -0,0 +1,13 @@ +entity ent is +end; + +library liba; +use liba.pkga.all; + +library libb; +use libb.pkgb.all; + +architecture behav of ent is +begin + assert a + b = 7; +end; diff --git a/testsuite/gna/issue1362/liba.vhdl b/testsuite/gna/issue1362/liba.vhdl new file mode 100644 index 000000000..1f1e06155 --- /dev/null +++ b/testsuite/gna/issue1362/liba.vhdl @@ -0,0 +1,3 @@ +package pkga is + constant a : natural := 5; +end; diff --git a/testsuite/gna/issue1362/libb.vhdl b/testsuite/gna/issue1362/libb.vhdl new file mode 100644 index 000000000..55a0f3dfc --- /dev/null +++ b/testsuite/gna/issue1362/libb.vhdl @@ -0,0 +1,3 @@ +package pkgb is + constant b : natural := 2; +end; diff --git a/testsuite/gna/issue1362/testsuite.sh b/testsuite/gna/issue1362/testsuite.sh new file mode 100755 index 000000000..a02c58206 --- /dev/null +++ b/testsuite/gna/issue1362/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +$GHDL -c --work=liba liba.vhdl --work=libb libb.vhdl --work=work ent.vhdl -e ent + +clean + +echo "Test successful" |