From 4a11f41e67adb67f7b29a4492ca3a2b8ddef2b91 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 23 Apr 2021 18:52:15 +0200 Subject: testsuite/synth: add a test for #1734 --- testsuite/synth/issue1734/ent.vhdl | 20 ++++++++++++++++++++ testsuite/synth/issue1734/testsuite.sh | 8 ++++++++ 2 files changed, 28 insertions(+) create mode 100644 testsuite/synth/issue1734/ent.vhdl create mode 100755 testsuite/synth/issue1734/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/synth/issue1734/ent.vhdl b/testsuite/synth/issue1734/ent.vhdl new file mode 100644 index 000000000..41fcfecbd --- /dev/null +++ b/testsuite/synth/issue1734/ent.vhdl @@ -0,0 +1,20 @@ +library ieee; +context ieee.ieee_std_context; + +entity fifo is + generic ( gen : positive := 8 ); +end fifo; + +architecture arch of fifo is begin end; + +library ieee; +context ieee.ieee_std_context; + +entity ent is + generic ( gen : integer := 0 ); +end ent; + +architecture arch of ent is +begin + fifo: entity work.fifo generic map ( gen ); +end architecture; diff --git a/testsuite/synth/issue1734/testsuite.sh b/testsuite/synth/issue1734/testsuite.sh new file mode 100755 index 000000000..be3df478e --- /dev/null +++ b/testsuite/synth/issue1734/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 +synth_failure ent.vhdl -e + +echo "Test successful" -- cgit v1.2.3