summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-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 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"