summaryrefslogtreecommitdiff
path: root/testsuite/gna/bug08/paren13.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/bug08/paren13.vhdl')
-rw-r--r--testsuite/gna/bug08/paren13.vhdl23
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/gna/bug08/paren13.vhdl b/testsuite/gna/bug08/paren13.vhdl
new file mode 100644
index 0000000..9da0740
--- /dev/null
+++ b/testsuite/gna/bug08/paren13.vhdl
@@ -0,0 +1,23 @@
+entity paren13 is
+end paren13;
+
+architecture behav of paren13
+is
+begin
+ proc: process
+ type string_acc is access string;
+ variable hel : string_acc := new string'("hello");
+ impure function a return string_acc is
+ begin
+ return hel;
+ end a;
+ function a return natural is
+ begin
+ return 5;
+ end a;
+ constant b : natural := 2;
+ begin
+ assert proc.a(b) = 'e';
+ wait;
+ end process;
+end behav;