From b3aec78254d4048f61693a88a3d25d1f5d8ccd25 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 2 Jul 2020 18:54:37 +0200 Subject: testsuite/synth: add a test for signals in packages. --- testsuite/synth/issue1387/repro1.vhdl | 15 +++++++++++++++ testsuite/synth/issue1387/testsuite.sh | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 testsuite/synth/issue1387/repro1.vhdl create mode 100755 testsuite/synth/issue1387/testsuite.sh (limited to 'testsuite') 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" -- cgit v1.2.3