From d2b3379a27cf86cbff068c42d7848a08343c57b6 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 9 Jun 2020 21:10:28 +0200 Subject: testsuite/gna: add a test for #1362 --- testsuite/gna/issue1362/ent.vhdl | 13 +++++++++++++ testsuite/gna/issue1362/liba.vhdl | 3 +++ testsuite/gna/issue1362/libb.vhdl | 3 +++ testsuite/gna/issue1362/testsuite.sh | 9 +++++++++ 4 files changed, 28 insertions(+) create mode 100644 testsuite/gna/issue1362/ent.vhdl create mode 100644 testsuite/gna/issue1362/liba.vhdl create mode 100644 testsuite/gna/issue1362/libb.vhdl create mode 100755 testsuite/gna/issue1362/testsuite.sh (limited to 'testsuite/gna/issue1362') 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" -- cgit v1.2.3