diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-04-06 16:01:20 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-04-06 16:01:20 +0200 |
commit | 0e040792238fc3b26937a7725f4141fc5bdab89b (patch) | |
tree | 595efab2b3976c3959b2a1d2d8e84885b4ae488e /testsuite/gna/bug096 | |
parent | 33a8546c81788a44e0ec542b205da8f0e1b9354c (diff) | |
download | ghdl-0e040792238fc3b26937a7725f4141fc5bdab89b.tar.gz ghdl-0e040792238fc3b26937a7725f4141fc5bdab89b.tar.bz2 ghdl-0e040792238fc3b26937a7725f4141fc5bdab89b.zip |
Add testcase for previous commit.
Diffstat (limited to 'testsuite/gna/bug096')
-rw-r--r-- | testsuite/gna/bug096/input.txt | 4 | ||||
-rw-r--r-- | testsuite/gna/bug096/reader.vhdl | 17 | ||||
-rwxr-xr-x | testsuite/gna/bug096/testsuite.sh | 10 |
3 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/gna/bug096/input.txt b/testsuite/gna/bug096/input.txt new file mode 100644 index 000000000..9c2a70906 --- /dev/null +++ b/testsuite/gna/bug096/input.txt @@ -0,0 +1,4 @@ +line 1 +line 2 +line 3 +line 4 diff --git a/testsuite/gna/bug096/reader.vhdl b/testsuite/gna/bug096/reader.vhdl new file mode 100644 index 000000000..1fa26776e --- /dev/null +++ b/testsuite/gna/bug096/reader.vhdl @@ -0,0 +1,17 @@ +entity reader is +end reader; + +use std.textio.all; + +architecture behav of reader is +begin + process + file f : text is in "input.txt"; + variable l : line; + begin + for i in 1 to 5 loop + readline (f, l); + end loop; + wait; + end process; +end behav; diff --git a/testsuite/gna/bug096/testsuite.sh b/testsuite/gna/bug096/testsuite.sh new file mode 100755 index 000000000..a7728f7d1 --- /dev/null +++ b/testsuite/gna/bug096/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze reader.vhdl +elab_simulate_failure reader + +clean + +echo "Test successful" |