diff options
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" |