diff options
author | Tristan Gingold <tgingold@free.fr> | 2015-05-12 20:11:22 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2015-05-12 20:11:22 +0200 |
commit | d9e97c772484b87006e2ac6049b8b6893927c725 (patch) | |
tree | 54ad392c04b8452931b0ebf66827bf3f48eb4189 /testsuite/gna/ticket53 | |
parent | e8e5c3d2ab5783d65fcd7a33a7b35c103179ece8 (diff) | |
download | ghdl-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.vhdl | 4 | ||||
-rw-r--r-- | testsuite/gna/ticket53/ent1.vhdl | 9 | ||||
-rwxr-xr-x | testsuite/gna/ticket53/testsuite.sh | 13 |
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" |