diff options
Diffstat (limited to 'testsuite/sanity/002hello2008')
-rw-r--r-- | testsuite/sanity/002hello2008/err93.vhdl | 10 | ||||
-rw-r--r-- | testsuite/sanity/002hello2008/hello.vhdl | 7 | ||||
-rwxr-xr-x | testsuite/sanity/002hello2008/testsuite.sh | 20 |
3 files changed, 37 insertions, 0 deletions
diff --git a/testsuite/sanity/002hello2008/err93.vhdl b/testsuite/sanity/002hello2008/err93.vhdl new file mode 100644 index 000000000..f33ec4c7f --- /dev/null +++ b/testsuite/sanity/002hello2008/err93.vhdl @@ -0,0 +1,10 @@ +entity err93 is +end err93; + +architecture behav of err93 is +begin + process (all) is + begin + report "not valid in vhdl-93" severity note; + end process; +end behav; diff --git a/testsuite/sanity/002hello2008/hello.vhdl b/testsuite/sanity/002hello2008/hello.vhdl new file mode 100644 index 000000000..792aae2bd --- /dev/null +++ b/testsuite/sanity/002hello2008/hello.vhdl @@ -0,0 +1,7 @@ +entity hello is +end hello; + +architecture behav of hello is +begin + assert false report "Hello VHDL world" severity note; +end behav; diff --git a/testsuite/sanity/002hello2008/testsuite.sh b/testsuite/sanity/002hello2008/testsuite.sh new file mode 100755 index 000000000..c8ce4478f --- /dev/null +++ b/testsuite/sanity/002hello2008/testsuite.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 +analyze hello.vhdl +elab_simulate hello + +# Check that vhdl-08 is used +analyze err93.vhdl + +clean + +# Check that err93 is not valid in vhdl-93 +GHDL_STD_FLAGS= +analyze_failure err93.vhdl + +clean + +echo "test successful" |