diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-06-09 21:10:28 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-06-09 21:12:11 +0200 |
commit | d2b3379a27cf86cbff068c42d7848a08343c57b6 (patch) | |
tree | 925b1a8d02fb9c546eaeaff986b6f0d4c9090a31 /testsuite/gna/issue1362 | |
parent | 47547a132eb132778117ca5c4eb3394df0500898 (diff) | |
download | ghdl-d2b3379a27cf86cbff068c42d7848a08343c57b6.tar.gz ghdl-d2b3379a27cf86cbff068c42d7848a08343c57b6.tar.bz2 ghdl-d2b3379a27cf86cbff068c42d7848a08343c57b6.zip |
testsuite/gna: add a test for #1362
Diffstat (limited to 'testsuite/gna/issue1362')
-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" |