diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-04-12 16:43:47 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-04-12 23:31:20 +0200 |
commit | 7b066064cc558b070a46c4d50aa54544101f2c2b (patch) | |
tree | c7b4c930fa0939932710fdb593f26685643a3af3 /testsuite/gna | |
parent | 074e960162d98017f14a2fe9e41c5c3b0a0a68a1 (diff) | |
download | ghdl-7b066064cc558b070a46c4d50aa54544101f2c2b.tar.gz ghdl-7b066064cc558b070a46c4d50aa54544101f2c2b.tar.bz2 ghdl-7b066064cc558b070a46c4d50aa54544101f2c2b.zip |
testsuite/gna: add a test for previous commit.
Diffstat (limited to 'testsuite/gna')
-rw-r--r-- | testsuite/gna/bug0114/hello.vhdl | 8 | ||||
-rw-r--r-- | testsuite/gna/bug0114/pkg.vhdl | 10 | ||||
-rwxr-xr-x | testsuite/gna/bug0114/testsuite.sh | 11 |
3 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/gna/bug0114/hello.vhdl b/testsuite/gna/bug0114/hello.vhdl new file mode 100644 index 000000000..d1a516229 --- /dev/null +++ b/testsuite/gna/bug0114/hello.vhdl @@ -0,0 +1,8 @@ +entity hello is +end hello; + +use work.pkg.all; +architecture behav of hello is +begin + say_hello; +end behav; diff --git a/testsuite/gna/bug0114/pkg.vhdl b/testsuite/gna/bug0114/pkg.vhdl new file mode 100644 index 000000000..8bdd20c9e --- /dev/null +++ b/testsuite/gna/bug0114/pkg.vhdl @@ -0,0 +1,10 @@ +package pkg is + procedure say_hello; +end pkg; + +package body pkg is + procedure say_hello is + begin + report "Hello"; + end say_hello; +end pkg; diff --git a/testsuite/gna/bug0114/testsuite.sh b/testsuite/gna/bug0114/testsuite.sh new file mode 100755 index 000000000..9f279e742 --- /dev/null +++ b/testsuite/gna/bug0114/testsuite.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +. ../../testenv.sh + +$GHDL -i hello.vhdl pkg.vhdl +sleep 1 +$GHDL -r --expect-failure hello + +clean + +echo "Test successful" |