aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/ticket83/bug.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/ticket83/bug.vhdl')
-rw-r--r--testsuite/gna/ticket83/bug.vhdl15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/gna/ticket83/bug.vhdl b/testsuite/gna/ticket83/bug.vhdl
new file mode 100644
index 000000000..616b4193f
--- /dev/null
+++ b/testsuite/gna/ticket83/bug.vhdl
@@ -0,0 +1,15 @@
+entity ent is
+end entity;
+
+architecture a of ent is
+begin
+ main : process
+ function foo return string is
+ variable s : string(1 to 1); -- Causes exception
+ begin
+ return (0 => '0');
+ end function;
+ begin
+ wait;
+ end process;
+end architecture;