summaryrefslogtreecommitdiff
path: root/testsuite/gna/ticket89/repro.vhdl
diff options
context:
space:
mode:
authorTristan Gingold2015-06-18 22:40:31 +0200
committerTristan Gingold2015-06-18 22:40:31 +0200
commitd08386567e47854722e2b3a92720737837ca0bbd (patch)
tree9195e0e903ca3f2fc5baab03911b5558ffaf6e4e /testsuite/gna/ticket89/repro.vhdl
parent03f2df0a31ac07711863c9580bc3bc48cbab3a3b (diff)
downloadghdl-d08386567e47854722e2b3a92720737837ca0bbd.tar.gz
ghdl-d08386567e47854722e2b3a92720737837ca0bbd.tar.bz2
ghdl-d08386567e47854722e2b3a92720737837ca0bbd.zip
Add testcase for ticket89.
Diffstat (limited to 'testsuite/gna/ticket89/repro.vhdl')
-rw-r--r--testsuite/gna/ticket89/repro.vhdl24
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/ticket89/repro.vhdl b/testsuite/gna/ticket89/repro.vhdl
new file mode 100644
index 0000000..8345172
--- /dev/null
+++ b/testsuite/gna/ticket89/repro.vhdl
@@ -0,0 +1,24 @@
+entity repro is
+end repro;
+
+architecture behav of repro is
+ signal s : natural;
+begin -- behav
+ process (s) is
+ variable v : natural;
+ begin
+ v := s'delayed (0 ns);
+ end process;
+
+ process
+ begin
+ s <= 3;
+ wait for 1 ns;
+ s <= 4;
+ wait for 0 ns;
+ s <= 5;
+ wait for 0 ns;
+ s <= 5;
+ wait;
+ end process;
+end behav;