diff options
author | Tristan Gingold <gingold@adacore.com> | 2015-12-29 18:32:45 +0100 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2015-12-29 18:33:05 +0100 |
commit | 5da63358e1dcc72fd25a1a299ac585d8ece05ccb (patch) | |
tree | 816468bb74e39f7c77995cd6463b4554fc16c1a4 /testsuite | |
parent | 1f3b9913f64c03c7243f72b34d197afba69c74c4 (diff) | |
download | ghdl-5da63358e1dcc72fd25a1a299ac585d8ece05ccb.tar.gz ghdl-5da63358e1dcc72fd25a1a299ac585d8ece05ccb.tar.bz2 ghdl-5da63358e1dcc72fd25a1a299ac585d8ece05ccb.zip |
Add testcase for issue9
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/issue9/repro.vhdl | 8 | ||||
-rw-r--r-- | testsuite/gna/issue9/repro2.vhdl | 9 | ||||
-rwxr-xr-x | testsuite/gna/issue9/testsuite.sh | 11 |
3 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gna/issue9/repro.vhdl b/testsuite/gna/issue9/repro.vhdl new file mode 100644 index 000000000..f8b7c8eea --- /dev/null +++ b/testsuite/gna/issue9/repro.vhdl @@ -0,0 +1,8 @@ +entity tmp is end entity; +architecture arch of tmp is + signal b : bit; +begin + with true select b <= + '0' when false | true, + '1' when true; +end architecture; diff --git a/testsuite/gna/issue9/repro2.vhdl b/testsuite/gna/issue9/repro2.vhdl new file mode 100644 index 000000000..3ca8424ac --- /dev/null +++ b/testsuite/gna/issue9/repro2.vhdl @@ -0,0 +1,9 @@ +entity tmp is end entity; +architecture arch of tmp is + subtype nat2 is natural range 0 to 3; + signal b : bit; +begin + with 2 select b <= + '0' when 0 to 2, + '1' when 2 to 3; +end architecture; diff --git a/testsuite/gna/issue9/testsuite.sh b/testsuite/gna/issue9/testsuite.sh new file mode 100755 index 000000000..c226c0355 --- /dev/null +++ b/testsuite/gna/issue9/testsuite.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +. ../../testenv.sh + + +analyze_failure repro.vhdl +analyze_failure repro2.vhdl + +clean test + +echo "Test successful" |