aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-11-04 20:06:57 +0100
committerTristan Gingold <tgingold@free.fr>2020-11-04 20:06:57 +0100
commitf0334b05fd993c0762d0c647236b7b6c5c42f4ca (patch)
tree07a06e609c4b64b52026380e12d036b8d906226d
parent12243a032feb07ba1cf9bf98898b5e3d594a3b4b (diff)
downloadghdl-f0334b05fd993c0762d0c647236b7b6c5c42f4ca.tar.gz
ghdl-f0334b05fd993c0762d0c647236b7b6c5c42f4ca.tar.bz2
ghdl-f0334b05fd993c0762d0c647236b7b6c5c42f4ca.zip
testsuite/gna: add a test for previous commit
-rw-r--r--testsuite/gna/bug0100/attr3.vhdl22
-rwxr-xr-xtestsuite/gna/bug0100/testsuite.sh1
2 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/gna/bug0100/attr3.vhdl b/testsuite/gna/bug0100/attr3.vhdl
new file mode 100644
index 000000000..75f24bc42
--- /dev/null
+++ b/testsuite/gna/bug0100/attr3.vhdl
@@ -0,0 +1,22 @@
+entity attr3 is
+end attr3;
+
+use std.textio.all;
+
+architecture behav of attr3 is
+ signal s : bit;
+begin
+ process
+ variable l : line;
+ begin
+ wait until s = '1';
+ 'event;
+
+ if s = '0' then
+ write(l, s);
+ else
+ write(l, string'("hello"));
+ write(l, s);
+ end if;
+ end process;
+end behav;
diff --git a/testsuite/gna/bug0100/testsuite.sh b/testsuite/gna/bug0100/testsuite.sh
index 786c316ca..c557161a3 100755
--- a/testsuite/gna/bug0100/testsuite.sh
+++ b/testsuite/gna/bug0100/testsuite.sh
@@ -23,6 +23,7 @@ analyze_failure --force-analysis badrng.vhdl
analyze_failure --force-analysis attr.vhdl
analyze_failure --force-analysis attr2.vhdl
analyze_failure paren.vhdl
+analyze_failure --force-analysis attr3.vhdl
if analyze_failure --force-analysis notype1.vhdl 2>&1 | grep -q "indexed name"; then
: