From fe338385f6c077e5b55b1fa2fc0fe4033894857d Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 12 Nov 2018 20:55:49 +0100 Subject: Add testcase for #547 --- testsuite/gna/issue547/ghdl-bug.vhdl | 11 +++++++++++ testsuite/gna/issue547/repro.vhdl | 8 ++++++++ testsuite/gna/issue547/testsuite.sh | 12 ++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 testsuite/gna/issue547/ghdl-bug.vhdl create mode 100644 testsuite/gna/issue547/repro.vhdl create mode 100755 testsuite/gna/issue547/testsuite.sh (limited to 'testsuite/gna') diff --git a/testsuite/gna/issue547/ghdl-bug.vhdl b/testsuite/gna/issue547/ghdl-bug.vhdl new file mode 100644 index 000000000..652d6f531 --- /dev/null +++ b/testsuite/gna/issue547/ghdl-bug.vhdl @@ -0,0 +1,11 @@ +library ieee; +use ieee.std_logic_1164.all; + +package ghdl_bug is + +type uncon_rec_t is record + slv : std_logic_vector; +end record; +type uncon_rec_arr_t is array (0 to 1) of uncon_rec_t; + +end ghdl_bug; diff --git a/testsuite/gna/issue547/repro.vhdl b/testsuite/gna/issue547/repro.vhdl new file mode 100644 index 000000000..f429cb989 --- /dev/null +++ b/testsuite/gna/issue547/repro.vhdl @@ -0,0 +1,8 @@ +use work.ghdl_bug; + +entity repro is +end; + +architecture behav of repro is +begin +end behav; diff --git a/testsuite/gna/issue547/testsuite.sh b/testsuite/gna/issue547/testsuite.sh new file mode 100755 index 000000000..38b6b8edf --- /dev/null +++ b/testsuite/gna/issue547/testsuite.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze ghdl-bug.vhdl +analyze repro.vhdl +elab_simulate repro + +clean + +echo "Test successful" -- cgit v1.2.3