aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue679
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-10-27 08:55:47 +0200
committerTristan Gingold <tgingold@free.fr>2018-10-27 08:55:47 +0200
commit5a97d9f219e116bd62b64294dc3d95678b3415f8 (patch)
treec1a3172c26aa897e2b8884879551fcf33c6a2eaa /testsuite/gna/issue679
parent39db720ffff84387d93802693c0cbd7186ca6501 (diff)
downloadghdl-5a97d9f219e116bd62b64294dc3d95678b3415f8.tar.gz
ghdl-5a97d9f219e116bd62b64294dc3d95678b3415f8.tar.bz2
ghdl-5a97d9f219e116bd62b64294dc3d95678b3415f8.zip
Add testcase for #679
Diffstat (limited to 'testsuite/gna/issue679')
-rw-r--r--testsuite/gna/issue679/repro.vhdl14
-rwxr-xr-xtestsuite/gna/issue679/testsuite.sh9
2 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/gna/issue679/repro.vhdl b/testsuite/gna/issue679/repro.vhdl
new file mode 100644
index 000000000..2aa5e63df
--- /dev/null
+++ b/testsuite/gna/issue679/repro.vhdl
@@ -0,0 +1,14 @@
+entity repro is
+end repro;
+
+architecture behav of repro is
+ signal clk : bit;
+ signal cyc: bit;
+ signal wen : bit;
+ signal lw : bit;
+begin
+ -- psl default clock is clk;
+
+ -- psl c1: assert always lw -> cyc and (next not(wen))
+ -- report "error";
+end;
diff --git a/testsuite/gna/issue679/testsuite.sh b/testsuite/gna/issue679/testsuite.sh
new file mode 100755
index 000000000..d44aa19d3
--- /dev/null
+++ b/testsuite/gna/issue679/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze -fpsl repro.vhdl
+
+clean
+
+echo "Test successful"