aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/ticket53
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2015-05-12 20:11:22 +0200
committerTristan Gingold <tgingold@free.fr>2015-05-12 20:11:22 +0200
commitd9e97c772484b87006e2ac6049b8b6893927c725 (patch)
tree54ad392c04b8452931b0ebf66827bf3f48eb4189 /testsuite/gna/ticket53
parente8e5c3d2ab5783d65fcd7a33a7b35c103179ece8 (diff)
downloadghdl-d9e97c772484b87006e2ac6049b8b6893927c725.tar.gz
ghdl-d9e97c772484b87006e2ac6049b8b6893927c725.tar.bz2
ghdl-d9e97c772484b87006e2ac6049b8b6893927c725.zip
Add tests for context declaration (ticket53).
Diffstat (limited to 'testsuite/gna/ticket53')
-rw-r--r--testsuite/gna/ticket53/decl1.vhdl4
-rw-r--r--testsuite/gna/ticket53/ent1.vhdl9
-rwxr-xr-xtestsuite/gna/ticket53/testsuite.sh13
3 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/gna/ticket53/decl1.vhdl b/testsuite/gna/ticket53/decl1.vhdl
new file mode 100644
index 000000000..ef86a587d
--- /dev/null
+++ b/testsuite/gna/ticket53/decl1.vhdl
@@ -0,0 +1,4 @@
+context prj is
+ library ieee;
+ use ieee.std_logic_1164.all;
+end context prj;
diff --git a/testsuite/gna/ticket53/ent1.vhdl b/testsuite/gna/ticket53/ent1.vhdl
new file mode 100644
index 000000000..fac67e47c
--- /dev/null
+++ b/testsuite/gna/ticket53/ent1.vhdl
@@ -0,0 +1,9 @@
+context work.prj;
+
+entity ent1 is
+end ent1;
+
+architecture behav of ent1 is
+ signal s : std_ulogic;
+begin
+end behav;
diff --git a/testsuite/gna/ticket53/testsuite.sh b/testsuite/gna/ticket53/testsuite.sh
new file mode 100755
index 000000000..57fa691b4
--- /dev/null
+++ b/testsuite/gna/ticket53/testsuite.sh
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+GHDL_STD_FLAGS=--std=08
+
+analyze decl1.vhdl
+analyze ent1.vhdl
+elab_simulate ent1
+
+clean
+
+echo "Test successful"