diff options
Diffstat (limited to 'testsuite/gna/bug034/repro.vhdl')
-rw-r--r-- | testsuite/gna/bug034/repro.vhdl | 20 |
1 files changed, 20 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; |