From 2fe0a5359e1bdf6dfdab20bea121db8f4e54ffe9 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 31 Dec 2013 19:01:02 +0100 Subject: Add bug21274 --- testsuite/gna/bug21274/21274.vhd | 14 ++++++++++++++ testsuite/gna/bug21274/testsuite.sh | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 testsuite/gna/bug21274/21274.vhd create mode 100644 testsuite/gna/bug21274/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/gna/bug21274/21274.vhd b/testsuite/gna/bug21274/21274.vhd new file mode 100644 index 0000000..cf4c5aa --- /dev/null +++ b/testsuite/gna/bug21274/21274.vhd @@ -0,0 +1,14 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity e is + generic(SIZE: INTEGER := 8); +end entity e; + +architecture a of e is + signal bufreg: STD_LOGIC_VECTOR((2 * SIZE - 1) downto 0); + alias ADreg1 is bufreg((2 * SIZE - 1) downto SIZE); + alias ADreg2: std_logic_vector((2 * SIZE - 1) downto SIZE) is bufreg((2 * SIZE - 1) downto SIZE); + +begin +end architecture; diff --git a/testsuite/gna/bug21274/testsuite.sh b/testsuite/gna/bug21274/testsuite.sh new file mode 100644 index 0000000..165c80c --- /dev/null +++ b/testsuite/gna/bug21274/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze 21274.vhd + +clean + +echo "Test successful" -- cgit