aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-03-13 21:06:40 +0100
committerTristan Gingold <tgingold@free.fr>2022-03-13 21:06:40 +0100
commit5015316150af384bd6d26136c43647f0e799cfc8 (patch)
tree3b6cbcf7e03752dd5087f204dbe742be6e4150f1 /testsuite
parentbad82879f21b5daefc9928890711cf2c34a8fb82 (diff)
downloadghdl-5015316150af384bd6d26136c43647f0e799cfc8.tar.gz
ghdl-5015316150af384bd6d26136c43647f0e799cfc8.tar.bz2
ghdl-5015316150af384bd6d26136c43647f0e799cfc8.zip
testsuite/gna: add a test for #2006
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/issue2006/filpkg.vhdl6
-rw-r--r--testsuite/gna/issue2006/mypkg.vhdl7
-rwxr-xr-xtestsuite/gna/issue2006/testsuite.sh11
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"