aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-07-02 18:54:37 +0200
committerTristan Gingold <tgingold@free.fr>2020-07-02 18:54:37 +0200
commitb3aec78254d4048f61693a88a3d25d1f5d8ccd25 (patch)
tree61d5e5a8a5236ce57bcdbfe06b13f053921de0d0 /testsuite
parent078c1ac07afa3d07a399fc88058cba11722a0100 (diff)
downloadghdl-b3aec78254d4048f61693a88a3d25d1f5d8ccd25.tar.gz
ghdl-b3aec78254d4048f61693a88a3d25d1f5d8ccd25.tar.bz2
ghdl-b3aec78254d4048f61693a88a3d25d1f5d8ccd25.zip
testsuite/synth: add a test for signals in packages.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/synth/issue1387/repro1.vhdl15
-rwxr-xr-xtestsuite/synth/issue1387/testsuite.sh7
2 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/synth/issue1387/repro1.vhdl b/testsuite/synth/issue1387/repro1.vhdl
new file mode 100644
index 000000000..f1277137d
--- /dev/null
+++ b/testsuite/synth/issue1387/repro1.vhdl
@@ -0,0 +1,15 @@
+package repro1_pkg is
+ signal s : bit;
+end;
+
+use work.repro1_pkg.all;
+
+entity repro1 is
+ port (a,b : bit;
+ c : out bit);
+end repro1;
+
+architecture behav of repro1 is
+begin
+ c <= a xor b;
+end behav;
diff --git a/testsuite/synth/issue1387/testsuite.sh b/testsuite/synth/issue1387/testsuite.sh
new file mode 100755
index 000000000..c7cde0ee3
--- /dev/null
+++ b/testsuite/synth/issue1387/testsuite.sh
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+synth_failure repro1.vhdl -e
+
+echo "Test successful"