aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2015-12-22 21:50:49 +0100
committerTristan Gingold <gingold@adacore.com>2015-12-24 13:56:41 +0100
commit1366a6fcb075b4ba80e7e2432312c4b3c31c69be (patch)
tree284eff45bb0aeb617b55aad1141694cf8c22190e /testsuite
parentc1c8b00b8fb88f8550a6da4db7aff869b6976df9 (diff)
downloadghdl-1366a6fcb075b4ba80e7e2432312c4b3c31c69be.tar.gz
ghdl-1366a6fcb075b4ba80e7e2432312c4b3c31c69be.tar.bz2
ghdl-1366a6fcb075b4ba80e7e2432312c4b3c31c69be.zip
Add semantic test for external pathes.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/ticket79/file.vhdl24
-rwxr-xr-xtestsuite/gna/ticket79/testsuite.sh12
2 files changed, 36 insertions, 0 deletions
diff --git a/testsuite/gna/ticket79/file.vhdl b/testsuite/gna/ticket79/file.vhdl
new file mode 100644
index 000000000..431e94886
--- /dev/null
+++ b/testsuite/gna/ticket79/file.vhdl
@@ -0,0 +1,24 @@
+entity sub_ent is
+end entity;
+
+architecture a of sub_ent is
+ signal sig : integer := 0;
+begin
+ sig <= 1 after 1 ns;
+end architecture;
+
+entity ent is
+end entity;
+
+architecture a of ent is
+ signal sig : integer;
+begin
+ dut : entity work.sub_ent;
+ sig <= << signal dut.sig : integer >>;
+
+ monitor : process
+ begin
+ wait on sig;
+ report to_string(sig);
+ end process;
+end architecture;
diff --git a/testsuite/gna/ticket79/testsuite.sh b/testsuite/gna/ticket79/testsuite.sh
new file mode 100755
index 000000000..efadfa2d5
--- /dev/null
+++ b/testsuite/gna/ticket79/testsuite.sh
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure file.vhdl
+
+GHDL_STD_FLAGS=--std=08
+$GHDL -s --std=08 file.vhdl
+
+clean
+
+echo "Test successful"