diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-12-26 05:41:43 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-12-26 05:41:43 +0100 |
commit | d2a787b2b64396dc270ae0f7a03b446efd4f9c4a (patch) | |
tree | c7005c2818c91aa42a466a8dc0f7ad721bfc6fc2 /testsuite/gna/bug0108 | |
parent | 70fb5528acbd954697a81ebf56078d91bf99be28 (diff) | |
download | ghdl-d2a787b2b64396dc270ae0f7a03b446efd4f9c4a.tar.gz ghdl-d2a787b2b64396dc270ae0f7a03b446efd4f9c4a.tar.bz2 ghdl-d2a787b2b64396dc270ae0f7a03b446efd4f9c4a.zip |
testsuite: add a test for previous change
Diffstat (limited to 'testsuite/gna/bug0108')
-rw-r--r-- | testsuite/gna/bug0108/ent.vhdl | 7 | ||||
-rw-r--r-- | testsuite/gna/bug0108/pkg.vhdl | 11 | ||||
-rwxr-xr-x | testsuite/gna/bug0108/testsuite.sh | 10 |
3 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gna/bug0108/ent.vhdl b/testsuite/gna/bug0108/ent.vhdl new file mode 100644 index 000000000..6a45e826c --- /dev/null +++ b/testsuite/gna/bug0108/ent.vhdl @@ -0,0 +1,7 @@ +entity name1 is +end name1; + +architecture behav of name1 is +begin + assert false report "hello" severity note; +end behav; diff --git a/testsuite/gna/bug0108/pkg.vhdl b/testsuite/gna/bug0108/pkg.vhdl new file mode 100644 index 000000000..b6321ba67 --- /dev/null +++ b/testsuite/gna/bug0108/pkg.vhdl @@ -0,0 +1,11 @@ +package name1 is + constant c : natural := 4; + function get_c return natural; +end name1; + +package body name1 is + function get_c return natural is + begin + return c; + end get_c; +end name1; diff --git a/testsuite/gna/bug0108/testsuite.sh b/testsuite/gna/bug0108/testsuite.sh new file mode 100755 index 000000000..90109549a --- /dev/null +++ b/testsuite/gna/bug0108/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze pkg.vhdl +analyze ent.vhdl + +clean + +echo "Test successful" |