From d2fca803b1deefc37fe35cd1fa845125acec6034 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 5 Jul 2021 18:28:13 +0200 Subject: testsuite/gna: add a test for previous commit --- testsuite/gna/bug0124/repro.vhdl | 17 +++++++++++++++++ testsuite/gna/bug0124/testsuite.sh | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 testsuite/gna/bug0124/repro.vhdl create mode 100755 testsuite/gna/bug0124/testsuite.sh (limited to 'testsuite/gna/bug0124') diff --git a/testsuite/gna/bug0124/repro.vhdl b/testsuite/gna/bug0124/repro.vhdl new file mode 100644 index 000000000..179535cd4 --- /dev/null +++ b/testsuite/gna/bug0124/repro.vhdl @@ -0,0 +1,17 @@ +entity repro1 is + generic (type t); +end repro1; + +architecture behav of repro1 is +begin +end behav; + +entity repro is + generic (type t); +end repro; + +architecture behav of repro is +begin + inst: entity work.repro1 + generic map (t => t); +end behav; diff --git a/testsuite/gna/bug0124/testsuite.sh b/testsuite/gna/bug0124/testsuite.sh new file mode 100755 index 000000000..772efc509 --- /dev/null +++ b/testsuite/gna/bug0124/testsuite.sh @@ -0,0 +1,7 @@ +#! /bin/sh + +. ../../testenv.sh + +$GHDL -s --std=08 repro.vhdl + +echo "Test successful" -- cgit v1.2.3