diff options
author | Tristan Gingold | 2016-01-05 06:47:12 +0100 |
---|---|---|
committer | Tristan Gingold | 2016-01-06 18:38:37 +0100 |
commit | 955e964b024de556c4c0db8fd745c6abdb8052fe (patch) | |
tree | c8c033deb0ea21b88cc24da224ec3f000e76c4ce | |
parent | 702be7d597c536450ae09475811297cba1b2f1cc (diff) | |
download | ghdl-955e964b024de556c4c0db8fd745c6abdb8052fe.tar.gz ghdl-955e964b024de556c4c0db8fd745c6abdb8052fe.tar.bz2 ghdl-955e964b024de556c4c0db8fd745c6abdb8052fe.zip |
Add bug034 testcase.
-rw-r--r-- | testsuite/gna/bug034/repro.vhdl | 20 | ||||
-rwxr-xr-x | testsuite/gna/bug034/testsuite.sh | 10 |
2 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/gna/bug034/repro.vhdl b/testsuite/gna/bug034/repro.vhdl new file mode 100644 index 0000000..e4401d3 --- /dev/null +++ b/testsuite/gna/bug034/repro.vhdl @@ -0,0 +1,20 @@ +ENTITY ent IS +END ent; + +ARCHITECTURE arch OF ent IS + function to_lower (c : character) return character is + begin + if c >= 'A' and c <= 'Z' then + return character'val (character'pos (c) + 32); + else + return c; + end if; + end to_lower; + +BEGIN + TESTING: PROCESS + BEGIN + assert to_lower('F') = 'f'; + wait; + END PROCESS TESTING; +END arch; diff --git a/testsuite/gna/bug034/testsuite.sh b/testsuite/gna/bug034/testsuite.sh new file mode 100755 index 0000000..522256f --- /dev/null +++ b/testsuite/gna/bug034/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze repro.vhdl +elab_simulate ent; + +clean + +echo "Test successful" |