diff options
author | Tristan Gingold | 2015-05-15 03:53:02 +0200 |
---|---|---|
committer | Tristan Gingold | 2015-05-15 03:53:02 +0200 |
commit | 4d370179c85343594e10999b66b3d014e2c552be (patch) | |
tree | 40a87ea1141dfbb9edf7a57b3835d9cb7b04c8c1 /testsuite/gna/ticket62/repro.vhdl | |
parent | 1c9d81caa66995a20656e08168f5847707769858 (diff) | |
download | ghdl-4d370179c85343594e10999b66b3d014e2c552be.tar.gz ghdl-4d370179c85343594e10999b66b3d014e2c552be.tar.bz2 ghdl-4d370179c85343594e10999b66b3d014e2c552be.zip |
Testcase for ticket 62.
Diffstat (limited to 'testsuite/gna/ticket62/repro.vhdl')
-rw-r--r-- | testsuite/gna/ticket62/repro.vhdl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/gna/ticket62/repro.vhdl b/testsuite/gna/ticket62/repro.vhdl new file mode 100644 index 0000000..349b997 --- /dev/null +++ b/testsuite/gna/ticket62/repro.vhdl @@ -0,0 +1,22 @@ +entity ent is +end; + +architecture behav of ent is + shared variable v : integer; +begin + process + begin + v := 2; + wait for 2 ns; + assert v = 5 severity failure; + wait; + end process; + + process + begin + wait for 1 ns; + assert v = 2 severity failure; + v := 5; + wait; + end process; +end; |