From 7132fb9e1b05def9d0ed00f9aa8803fb984db218 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 13 Jun 2019 18:18:46 +0200 Subject: Add tests for previous patches. --- testsuite/gna/bug0100/choicelen.vhdl | 14 ++++++++++++++ testsuite/gna/bug0100/noexpr.vhdl | 8 ++++++++ testsuite/gna/bug0100/testsuite.sh | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 testsuite/gna/bug0100/choicelen.vhdl create mode 100644 testsuite/gna/bug0100/noexpr.vhdl (limited to 'testsuite/gna') diff --git a/testsuite/gna/bug0100/choicelen.vhdl b/testsuite/gna/bug0100/choicelen.vhdl new file mode 100644 index 000000000..c9578948c --- /dev/null +++ b/testsuite/gna/bug0100/choicelen.vhdl @@ -0,0 +1,14 @@ +entity nochoice2 is +end; + +architecture behav of nochoice2 is + constant n : string (1 to 2) := "ab"; +begin + process + begin + case n is + when "aa" => null; + when "bbb" => null; + end case; + end process; +end behav; diff --git a/testsuite/gna/bug0100/noexpr.vhdl b/testsuite/gna/bug0100/noexpr.vhdl new file mode 100644 index 000000000..7b4b339b8 --- /dev/null +++ b/testsuite/gna/bug0100/noexpr.vhdl @@ -0,0 +1,8 @@ +entity noexpr is +end noexpr; + +architecture behav of noexpr is + signal s : bit_vector (7 downto 0); +begin + s (7 downto 1) <= (); +end behav; diff --git a/testsuite/gna/bug0100/testsuite.sh b/testsuite/gna/bug0100/testsuite.sh index a17297a28..5284a603d 100755 --- a/testsuite/gna/bug0100/testsuite.sh +++ b/testsuite/gna/bug0100/testsuite.sh @@ -7,6 +7,8 @@ analyze_failure --force-analysis notype1.vhdl analyze_failure --force-analysis notype2.vhdl analyze_failure --force-analysis nochoice1.vhdl analyze_failure --force-analysis nochoice2.vhdl +analyze_failure --force-analysis choicelen.vhdl +analyze_failure --force-analysis noexpr.vhdl if analyze_failure --force-analysis notype1.vhdl 2>&1 | grep -q "indexed name"; then : -- cgit v1.2.3