aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue238/call3.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-02-21 04:44:28 +0100
committerTristan Gingold <tgingold@free.fr>2017-02-21 04:47:56 +0100
commit58e1d46280fa86b0c369d9134d51b90771b9a25c (patch)
tree16465c8ce72afa3cd9bfcca56cac5d45d34f2b6a /testsuite/gna/issue238/call3.vhdl
parentbc78710187b5875d40d4b539b81da5ec464c508d (diff)
downloadghdl-58e1d46280fa86b0c369d9134d51b90771b9a25c.tar.gz
ghdl-58e1d46280fa86b0c369d9134d51b90771b9a25c.tar.bz2
ghdl-58e1d46280fa86b0c369d9134d51b90771b9a25c.zip
unbounded records: add more tests.
Diffstat (limited to 'testsuite/gna/issue238/call3.vhdl')
-rw-r--r--testsuite/gna/issue238/call3.vhdl21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/issue238/call3.vhdl b/testsuite/gna/issue238/call3.vhdl
new file mode 100644
index 000000000..99006447d
--- /dev/null
+++ b/testsuite/gna/issue238/call3.vhdl
@@ -0,0 +1,21 @@
+entity call3 is
+end;
+
+use work.pkg.all;
+
+architecture behav of call3 is
+ procedure p (a : rec) is
+ begin
+ report natural'image (a.s'left);
+ report natural'image (a.s'right);
+ assert a.s'left = 1;
+ assert a.s'right = 4;
+ end;
+begin
+ process
+ variable v : rec_4dyn;
+ begin
+ p (v);
+ wait;
+ end process;
+end behav;