diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-12-21 20:34:03 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-12-21 20:34:03 +0100 |
commit | f0aeb9278bec7c1b9ebf9e96a08c453966f0510d (patch) | |
tree | 5130114513ffbcde42ed3e79c1d2112a68d3a0a0 /testsuite/gna/issue241/arr.vhdl | |
parent | f8bcaadda310f55277c64030c9dde05edc6e7ab8 (diff) | |
download | ghdl-f0aeb9278bec7c1b9ebf9e96a08c453966f0510d.tar.gz ghdl-f0aeb9278bec7c1b9ebf9e96a08c453966f0510d.tar.bz2 ghdl-f0aeb9278bec7c1b9ebf9e96a08c453966f0510d.zip |
Add testcase for #241
Diffstat (limited to 'testsuite/gna/issue241/arr.vhdl')
-rw-r--r-- | testsuite/gna/issue241/arr.vhdl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/gna/issue241/arr.vhdl b/testsuite/gna/issue241/arr.vhdl new file mode 100644 index 000000000..6d59a2871 --- /dev/null +++ b/testsuite/gna/issue241/arr.vhdl @@ -0,0 +1,17 @@ +entity arr is +end; + +architecture behav of arr is + type arr_type is array (natural range <>) of natural; + constant a : arr_type (2 downto 1) := (1 | 2 => 3); + constant b : boolean := a (1) = a (2); +begin + process + begin + case true is + when b => null; + when false => null; + end case; + wait; + end process; +end behav; |