diff options
author | Tristan Gingold <tgingold@free.fr> | 2013-12-18 05:53:22 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2013-12-18 05:53:22 +0100 |
commit | bd4aff0f670351c0652cf24e9b04361dc0e3a01c (patch) | |
tree | afcc1050ac74fc64b5756e2550bc32ea61d1e7bb /testsuite/gna/bug18353 | |
parent | 5fde24d46fae799e6c0723850097a8fccd64d747 (diff) | |
download | ghdl-bd4aff0f670351c0652cf24e9b04361dc0e3a01c.tar.gz ghdl-bd4aff0f670351c0652cf24e9b04361dc0e3a01c.tar.bz2 ghdl-bd4aff0f670351c0652cf24e9b04361dc0e3a01c.zip |
Add initial testsuite, using regression tests from bugs or support
reported on gna.org
Diffstat (limited to 'testsuite/gna/bug18353')
-rw-r--r-- | testsuite/gna/bug18353/TESTCASE.vhdl | 22 | ||||
-rwxr-xr-x | testsuite/gna/bug18353/testsuite.sh | 10 |
2 files changed, 32 insertions, 0 deletions
diff --git a/testsuite/gna/bug18353/TESTCASE.vhdl b/testsuite/gna/bug18353/TESTCASE.vhdl new file mode 100644 index 000000000..d4a333e5f --- /dev/null +++ b/testsuite/gna/bug18353/TESTCASE.vhdl @@ -0,0 +1,22 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + + +entity TESTCASE is +end TESTCASE; + + +architecture DUMMY of TESTCASE is +begin + + dummy: process + constant str : string := "8#5382#"; + variable xv : integer; + begin + xv := integer'value(str); + report "xv := " & integer'image(xv) severity NOTE; + wait; + end process; + +end DUMMY; diff --git a/testsuite/gna/bug18353/testsuite.sh b/testsuite/gna/bug18353/testsuite.sh new file mode 100755 index 000000000..a1d7c31b1 --- /dev/null +++ b/testsuite/gna/bug18353/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze TESTCASE.vhdl +elab_simulate_failure testcase + +clean + +echo "Test successful" |