aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/ticket56/bug.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/ticket56/bug.vhdl')
-rw-r--r--testsuite/gna/ticket56/bug.vhdl15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/gna/ticket56/bug.vhdl b/testsuite/gna/ticket56/bug.vhdl
new file mode 100644
index 000000000..43b3ab06a
--- /dev/null
+++ b/testsuite/gna/ticket56/bug.vhdl
@@ -0,0 +1,15 @@
+entity test is
+end entity;
+
+architecture a of test is
+ function fun(var : boolean) return boolean is
+ begin
+ return var;
+ end function;
+begin
+ main : process
+ constant c : boolean := fun;
+ begin
+ wait;
+ end process;
+end architecture;