aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-06-13 18:18:13 +0200
committerTristan Gingold <tgingold@free.fr>2019-06-13 18:18:13 +0200
commit7493a7cb0f5abc15a0b2ae6237d020cbbc790a9d (patch)
tree0b5f1b7d2adb9c2e28aa392df7e47ba88ed77868
parenta1a032768770c502292a7d0c632fba17aef8c012 (diff)
downloadghdl-7493a7cb0f5abc15a0b2ae6237d020cbbc790a9d.tar.gz
ghdl-7493a7cb0f5abc15a0b2ae6237d020cbbc790a9d.tar.bz2
ghdl-7493a7cb0f5abc15a0b2ae6237d020cbbc790a9d.zip
Add tests for previous commit.
-rw-r--r--testsuite/gna/bug0100/nochoice1.vhdl12
-rw-r--r--testsuite/gna/bug0100/nochoice2.vhdl12
-rwxr-xr-xtestsuite/gna/bug0100/testsuite.sh2
3 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/gna/bug0100/nochoice1.vhdl b/testsuite/gna/bug0100/nochoice1.vhdl
new file mode 100644
index 000000000..6dc62ee53
--- /dev/null
+++ b/testsuite/gna/bug0100/nochoice1.vhdl
@@ -0,0 +1,12 @@
+entity nochoice is
+end;
+
+architecture behav of nochoice is
+ constant n : natural := 5;
+begin
+ process
+ begin
+ case n is
+ end case;
+ end process;
+end behav;
diff --git a/testsuite/gna/bug0100/nochoice2.vhdl b/testsuite/gna/bug0100/nochoice2.vhdl
new file mode 100644
index 000000000..ec8db684d
--- /dev/null
+++ b/testsuite/gna/bug0100/nochoice2.vhdl
@@ -0,0 +1,12 @@
+entity nochoice2 is
+end;
+
+architecture behav of nochoice2 is
+ constant n : string (1 to 2) := "ab";
+begin
+ process
+ begin
+ case n is
+ end case;
+ end process;
+end behav;
diff --git a/testsuite/gna/bug0100/testsuite.sh b/testsuite/gna/bug0100/testsuite.sh
index c0622ed86..a17297a28 100755
--- a/testsuite/gna/bug0100/testsuite.sh
+++ b/testsuite/gna/bug0100/testsuite.sh
@@ -5,6 +5,8 @@
analyze_failure --force-analysis inst1.vhdl
analyze_failure --force-analysis notype1.vhdl
analyze_failure --force-analysis notype2.vhdl
+analyze_failure --force-analysis nochoice1.vhdl
+analyze_failure --force-analysis nochoice2.vhdl
if analyze_failure --force-analysis notype1.vhdl 2>&1 | grep -q "indexed name"; then
: