diff options
author | Tristan Gingold | 2015-12-22 21:50:49 +0100 |
---|---|---|
committer | Tristan Gingold | 2015-12-24 13:56:41 +0100 |
commit | 1366a6fcb075b4ba80e7e2432312c4b3c31c69be (patch) | |
tree | 284eff45bb0aeb617b55aad1141694cf8c22190e /testsuite/gna/ticket79 | |
parent | c1c8b00b8fb88f8550a6da4db7aff869b6976df9 (diff) | |
download | ghdl-1366a6fcb075b4ba80e7e2432312c4b3c31c69be.tar.gz ghdl-1366a6fcb075b4ba80e7e2432312c4b3c31c69be.tar.bz2 ghdl-1366a6fcb075b4ba80e7e2432312c4b3c31c69be.zip |
Add semantic test for external pathes.
Diffstat (limited to 'testsuite/gna/ticket79')
-rw-r--r-- | testsuite/gna/ticket79/file.vhdl | 24 | ||||
-rwxr-xr-x | testsuite/gna/ticket79/testsuite.sh | 12 |
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 0000000..431e948 --- /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 0000000..efadfa2 --- /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" |