summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold2015-09-26 05:55:27 +0200
committerTristan Gingold2015-09-26 05:55:27 +0200
commit42fab693f6ab2171123ef8d2ab6b92bfe3935aca (patch)
treeeb7d036c886c0bdd5993d519a170c036875bd1f1 /testsuite
parentd46e4f35422e107db1edfbcc97e3624fc3965b7f (diff)
downloadghdl-42fab693f6ab2171123ef8d2ab6b92bfe3935aca.tar.gz
ghdl-42fab693f6ab2171123ef8d2ab6b92bfe3935aca.tar.bz2
ghdl-42fab693f6ab2171123ef8d2ab6b92bfe3935aca.zip
testcase for ticket95
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/ticket95/pkg.vhd10
-rwxr-xr-xtestsuite/gna/ticket95/testsuite.sh8
2 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/gna/ticket95/pkg.vhd b/testsuite/gna/ticket95/pkg.vhd
new file mode 100644
index 0000000..0346621
--- /dev/null
+++ b/testsuite/gna/ticket95/pkg.vhd
@@ -0,0 +1,10 @@
+use std.textio.all;
+
+package pkg is
+ type enum_t is (a,b,c,d);
+ type arr_t is array (enum_t range <>) of line;
+ shared variable arr : arr_t(a to d) := (others => null);
+end package;
+
+package body pkg is
+end package body pkg;
diff --git a/testsuite/gna/ticket95/testsuite.sh b/testsuite/gna/ticket95/testsuite.sh
new file mode 100755
index 0000000..0ff1c86
--- /dev/null
+++ b/testsuite/gna/ticket95/testsuite.sh
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze pkg.vhd
+clean
+
+echo "Test successful"