diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-03-13 21:06:40 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-03-13 21:06:40 +0100 |
commit | 5015316150af384bd6d26136c43647f0e799cfc8 (patch) | |
tree | 3b6cbcf7e03752dd5087f204dbe742be6e4150f1 /testsuite/gna | |
parent | bad82879f21b5daefc9928890711cf2c34a8fb82 (diff) | |
download | ghdl-5015316150af384bd6d26136c43647f0e799cfc8.tar.gz ghdl-5015316150af384bd6d26136c43647f0e799cfc8.tar.bz2 ghdl-5015316150af384bd6d26136c43647f0e799cfc8.zip |
testsuite/gna: add a test for #2006
Diffstat (limited to 'testsuite/gna')
-rw-r--r-- | testsuite/gna/issue2006/filpkg.vhdl | 6 | ||||
-rw-r--r-- | testsuite/gna/issue2006/mypkg.vhdl | 7 | ||||
-rwxr-xr-x | testsuite/gna/issue2006/testsuite.sh | 11 |
3 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/issue2006/filpkg.vhdl b/testsuite/gna/issue2006/filpkg.vhdl new file mode 100644 index 000000000..5ba7d60d4 --- /dev/null +++ b/testsuite/gna/issue2006/filpkg.vhdl @@ -0,0 +1,6 @@ +package filpkg is + type foo; + type foo_acc is access foo; + + type foo is file of character; +end package filpkg; diff --git a/testsuite/gna/issue2006/mypkg.vhdl b/testsuite/gna/issue2006/mypkg.vhdl new file mode 100644 index 000000000..4ad29cd46 --- /dev/null +++ b/testsuite/gna/issue2006/mypkg.vhdl @@ -0,0 +1,7 @@ +package mypkg is + type foo; + type foo_acc is access foo; + + type foo is protected + end protected; +end package mypkg; diff --git a/testsuite/gna/issue2006/testsuite.sh b/testsuite/gna/issue2006/testsuite.sh new file mode 100755 index 000000000..0406748f1 --- /dev/null +++ b/testsuite/gna/issue2006/testsuite.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze_failure mypkg.vhdl +analyze_failure filpkg.vhdl + +clean + +echo "Test successful" |