summaryrefslogtreecommitdiff
path: root/testsuite/gna/bug08/paren4.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/bug08/paren4.vhdl')
-rw-r--r--testsuite/gna/bug08/paren4.vhdl13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/gna/bug08/paren4.vhdl b/testsuite/gna/bug08/paren4.vhdl
new file mode 100644
index 0000000..f45fe8f
--- /dev/null
+++ b/testsuite/gna/bug08/paren4.vhdl
@@ -0,0 +1,13 @@
+entity paren4 is
+end paren4;
+
+architecture behav of paren4
+is
+ function a (param : natural) return natural is
+ begin
+ return param + 1;
+ end a;
+ constant b : natural := 3;
+begin
+ assert a(b) = 4;
+end behav;