From fb5e1b9ba9c6c1e7ae8c335adcdca03903c78567 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 5 Jan 2022 19:25:49 +0100 Subject: testsuite/synth: add a test for #1942 --- testsuite/synth/issue1942/ent.vhdl | 13 +++++++++++++ testsuite/synth/issue1942/testsuite.sh | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 testsuite/synth/issue1942/ent.vhdl create mode 100755 testsuite/synth/issue1942/testsuite.sh (limited to 'testsuite/synth') diff --git a/testsuite/synth/issue1942/ent.vhdl b/testsuite/synth/issue1942/ent.vhdl new file mode 100644 index 000000000..e6c7ada0a --- /dev/null +++ b/testsuite/synth/issue1942/ent.vhdl @@ -0,0 +1,13 @@ +package gen_pkg is + generic (N : integer); +end gen_pkg; + +entity test is +end entity test; + +architecture simple of test is + package pkg is new work.gen_pkg generic map (N => 1); + + use pkg.all; +begin +end architecture simple; diff --git a/testsuite/synth/issue1942/testsuite.sh b/testsuite/synth/issue1942/testsuite.sh new file mode 100755 index 000000000..0540e945a --- /dev/null +++ b/testsuite/synth/issue1942/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 +synth_only ent + +echo "Test successful" -- cgit v1.2.3