From 99c5fecec91d481139a3108dd3e7b53158a002c2 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 2 Jul 2020 18:46:28 +0200 Subject: testsuite/gna: add a test for previous commit. --- testsuite/gna/issue1387/repro5.vhdl | 10 ++++++++++ testsuite/gna/issue1387/testsuite.sh | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 testsuite/gna/issue1387/repro5.vhdl (limited to 'testsuite/gna') diff --git a/testsuite/gna/issue1387/repro5.vhdl b/testsuite/gna/issue1387/repro5.vhdl new file mode 100644 index 000000000..6ff80266b --- /dev/null +++ b/testsuite/gna/issue1387/repro5.vhdl @@ -0,0 +1,10 @@ +entity repro5 is + port (s : out bit); +end; + +architecture behav of repro5 is + constant width : integer := 1; + constant zeros : bit_vector(0 to width-1) := (0 to width-1 => '0'); +begin + s <= zeros(0); +end; diff --git a/testsuite/gna/issue1387/testsuite.sh b/testsuite/gna/issue1387/testsuite.sh index 74921ddc7..b4b0efcc2 100755 --- a/testsuite/gna/issue1387/testsuite.sh +++ b/testsuite/gna/issue1387/testsuite.sh @@ -11,6 +11,8 @@ elab_simulate repro3 analyze repro4.vhdl +analyze repro5.vhdl + clean echo "Test successful" -- cgit v1.2.3