summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0000000..ef86a58
--- /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 0000000..fac67e4
--- /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 0000000..57fa691
--- /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"