From 6af4fb0c53fa0c57f14f07d54f8d32b58c4a1b2a Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 10 Jan 2022 07:45:21 +0100 Subject: testsuite/synth: add a test for #1944 --- testsuite/synth/issue1944/test.vhdl | 11 +++++++++++ testsuite/synth/issue1944/testsuite.sh | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 testsuite/synth/issue1944/test.vhdl create mode 100755 testsuite/synth/issue1944/testsuite.sh diff --git a/testsuite/synth/issue1944/test.vhdl b/testsuite/synth/issue1944/test.vhdl new file mode 100644 index 000000000..392ac438c --- /dev/null +++ b/testsuite/synth/issue1944/test.vhdl @@ -0,0 +1,11 @@ +package gen_pkg is + generic (type T); +end gen_pkg; + +entity test is +end entity test; + +architecture simple of test is + package pkg is new work.gen_pkg generic map (t => integer); +begin +end architecture simple; diff --git a/testsuite/synth/issue1944/testsuite.sh b/testsuite/synth/issue1944/testsuite.sh new file mode 100755 index 000000000..1bd00c114 --- /dev/null +++ b/testsuite/synth/issue1944/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 +synth_only test + +echo "Test successful" -- cgit v1.2.3