aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/ticket74/bug.vhdl15
-rwxr-xr-xtestsuite/gna/ticket74/testsuite.sh9
2 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/ticket74/bug.vhdl b/testsuite/gna/ticket74/bug.vhdl
new file mode 100644
index 000000000..bae04dad6
--- /dev/null
+++ b/testsuite/gna/ticket74/bug.vhdl
@@ -0,0 +1,15 @@
+entity ent is
+end entity;
+
+architecture a of ent is
+ function fun(s : string) return integer is
+ begin
+ return 0;
+ end;
+begin
+ main : process
+ begin
+ assert fun(s(4 to 15) => "Hello world!") = 0;
+ wait;
+ end process;
+end architecture;
diff --git a/testsuite/gna/ticket74/testsuite.sh b/testsuite/gna/ticket74/testsuite.sh
new file mode 100755
index 000000000..0440719e6
--- /dev/null
+++ b/testsuite/gna/ticket74/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze bug.vhdl
+elab_simulate ent
+clean
+
+echo "Test successful"