From d239d7e5acdf8761b024626e70f174016563a804 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 21 Apr 2018 18:09:03 +0200 Subject: Add testcase for #558 --- testsuite/gna/issue558/repro.vhdl | 16 ++++++++++++++++ testsuite/gna/issue558/testsuite.sh | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100644 testsuite/gna/issue558/repro.vhdl create mode 100755 testsuite/gna/issue558/testsuite.sh diff --git a/testsuite/gna/issue558/repro.vhdl b/testsuite/gna/issue558/repro.vhdl new file mode 100644 index 000000000..ab51eef29 --- /dev/null +++ b/testsuite/gna/issue558/repro.vhdl @@ -0,0 +1,16 @@ +library ieee; +use ieee.std_logic_1164.all; + +package repro is + type SPIrecGeneric is record + BIT : positive; + end record; + + type SPI_Rec_input is record + SPI_Data_in : std_logic_vector (SPIrecGeneric.BIT-1 downto 0); + end record; + + type SPI_Rec_Output is record + SPI_Data_out : std_logic_vector (SPIrecGeneric.BIT-1 downto 0); + end record; +end repro; diff --git a/testsuite/gna/issue558/testsuite.sh b/testsuite/gna/issue558/testsuite.sh new file mode 100755 index 000000000..5defdcf1e --- /dev/null +++ b/testsuite/gna/issue558/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze_failure repro.vhdl + +clean + +echo "Test successful" -- cgit v1.2.3