diff options
Diffstat (limited to 'testsuite/gna/issue14/repro.vhdl')
-rw-r--r-- | testsuite/gna/issue14/repro.vhdl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/gna/issue14/repro.vhdl b/testsuite/gna/issue14/repro.vhdl new file mode 100644 index 000000000..4dc747f1e --- /dev/null +++ b/testsuite/gna/issue14/repro.vhdl @@ -0,0 +1,20 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity repro is +end repro; + +architecture behav of repro is +begin + process + variable z : std_ulogic_vector (1 to 2) := "00"; + variable r : std_ulogic; + begin + r := z ?= "LL"; + assert r = '1'; + z := "--"; + r := z ?= "00"; -- One warning + r := z ?= "--"; -- Two warning + wait; + end process; +end behav; |