aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/issue320/fuu.vhdl15
-rwxr-xr-xtestsuite/gna/issue320/testsuite.sh10
2 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/gna/issue320/fuu.vhdl b/testsuite/gna/issue320/fuu.vhdl
new file mode 100644
index 000000000..d6a076424
--- /dev/null
+++ b/testsuite/gna/issue320/fuu.vhdl
@@ -0,0 +1,15 @@
+entity fuu is
+end entity;
+
+architecture fum of fuu is
+ function fie return string is
+ begin
+ return "11010011";
+ end function;
+begin
+ process
+ begin
+ report "expression'right = " & integer'image(fie'RIGHT);
+ wait;
+ end process;
+end architecture;
diff --git a/testsuite/gna/issue320/testsuite.sh b/testsuite/gna/issue320/testsuite.sh
new file mode 100755
index 000000000..3dd348552
--- /dev/null
+++ b/testsuite/gna/issue320/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze fuu.vhdl
+elab_simulate fuu
+
+clean
+
+echo "Test successful"