aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue238/call2.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-02-17 06:56:12 +0100
committerTristan Gingold <tgingold@free.fr>2017-02-17 22:09:54 +0100
commit5f6dfc4373418815637a1fa3de15a2d3b025b0ff (patch)
tree3bfd9e35a518f17199d9e110e25236661a078472 /testsuite/gna/issue238/call2.vhdl
parent6ca409f3359d31ddd2815f5bf42973901923c59d (diff)
downloadghdl-5f6dfc4373418815637a1fa3de15a2d3b025b0ff.tar.gz
ghdl-5f6dfc4373418815637a1fa3de15a2d3b025b0ff.tar.bz2
ghdl-5f6dfc4373418815637a1fa3de15a2d3b025b0ff.zip
More tests for unbounded records.
Diffstat (limited to 'testsuite/gna/issue238/call2.vhdl')
-rw-r--r--testsuite/gna/issue238/call2.vhdl18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/gna/issue238/call2.vhdl b/testsuite/gna/issue238/call2.vhdl
new file mode 100644
index 000000000..d5bad46cb
--- /dev/null
+++ b/testsuite/gna/issue238/call2.vhdl
@@ -0,0 +1,18 @@
+entity call2 is
+end;
+
+use work.pkg.all;
+
+architecture behav of call2 is
+ function func return rec is
+ variable res : rec_4;
+ begin
+ return res;
+ end func;
+begin
+ process
+ constant v : rec := func;
+ begin
+ wait;
+ end process;
+end behav;