diff options
Diffstat (limited to 'testsuite/gna')
-rw-r--r-- | testsuite/gna/bug07/repro.vhdl | 21 | ||||
-rwxr-xr-x | testsuite/gna/bug07/testsuite.sh | 10 |
2 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/gna/bug07/repro.vhdl b/testsuite/gna/bug07/repro.vhdl new file mode 100644 index 0000000..89d6f29 --- /dev/null +++ b/testsuite/gna/bug07/repro.vhdl @@ -0,0 +1,21 @@ +entity repro is +end repro; + +architecture behav of repro is + type int_vector is array (natural range <>) of integer; + + constant c1 : int_vector (0 to 1) := 12 & 13; + constant c2 : int_vector (0 to 1) := 14 & 15; + constant p : boolean := c1 = c2; + constant p1 : boolean := c1 < c2; +begin + process + begin + case true is + when p => null; + when true => null; + end case; + wait; + end process; +end behav; + diff --git a/testsuite/gna/bug07/testsuite.sh b/testsuite/gna/bug07/testsuite.sh new file mode 100755 index 0000000..7da7af9 --- /dev/null +++ b/testsuite/gna/bug07/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze repro.vhdl +elab_simulate repro + +clean + +echo "Test successful" |