aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug034
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/bug034')
-rw-r--r--testsuite/gna/bug034/repro.vhdl20
-rwxr-xr-xtestsuite/gna/bug034/testsuite.sh10
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 000000000..e4401d390
--- /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 000000000..522256f2b
--- /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"