aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/ticket58
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2015-05-12 20:35:20 +0200
committerTristan Gingold <tgingold@free.fr>2015-05-12 20:35:20 +0200
commitcf227d317d561ab39327a12cf7c9b2a24daf72aa (patch)
tree78fa6b1f3caa021a64e2e7c952866dd8ca5ef170 /testsuite/gna/ticket58
parent53c382d2d8a0661077ff4bf3147afc373e93e898 (diff)
downloadghdl-cf227d317d561ab39327a12cf7c9b2a24daf72aa.tar.gz
ghdl-cf227d317d561ab39327a12cf7c9b2a24daf72aa.tar.bz2
ghdl-cf227d317d561ab39327a12cf7c9b2a24daf72aa.zip
Testcase for ticket58.
Diffstat (limited to 'testsuite/gna/ticket58')
-rw-r--r--testsuite/gna/ticket58/bug.vhdl7
-rwxr-xr-xtestsuite/gna/ticket58/testsuite.sh10
2 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/gna/ticket58/bug.vhdl b/testsuite/gna/ticket58/bug.vhdl
new file mode 100644
index 000000000..1f95e8951
--- /dev/null
+++ b/testsuite/gna/ticket58/bug.vhdl
@@ -0,0 +1,7 @@
+package pkg is
+end package;
+
+context ctx is
+ library lib;
+ use lib.pkg.all;
+end context;
diff --git a/testsuite/gna/ticket58/testsuite.sh b/testsuite/gna/ticket58/testsuite.sh
new file mode 100755
index 000000000..c4e887895
--- /dev/null
+++ b/testsuite/gna/ticket58/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+GHDL_STD_FLAGS="--std=08 --work=lib"
+analyze bug.vhdl
+
+clean
+
+echo "Test successful"