aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug023/ppkg1.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2015-09-02 18:23:37 +0200
committerTristan Gingold <tgingold@free.fr>2015-09-02 18:23:37 +0200
commit27e107a5196b31de85b3433c8dc616d6d7c7432c (patch)
treea50cf743867305b3e5643b44178fe3a4d62c0d79 /testsuite/gna/bug023/ppkg1.vhdl
parentd40c73de021a6c07d73a7f17e499f9ba6772f164 (diff)
downloadghdl-27e107a5196b31de85b3433c8dc616d6d7c7432c.tar.gz
ghdl-27e107a5196b31de85b3433c8dc616d6d7c7432c.tar.bz2
ghdl-27e107a5196b31de85b3433c8dc616d6d7c7432c.zip
Add bug023.
Diffstat (limited to 'testsuite/gna/bug023/ppkg1.vhdl')
-rw-r--r--testsuite/gna/bug023/ppkg1.vhdl24
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/bug023/ppkg1.vhdl b/testsuite/gna/bug023/ppkg1.vhdl
new file mode 100644
index 000000000..474bb6f83
--- /dev/null
+++ b/testsuite/gna/bug023/ppkg1.vhdl
@@ -0,0 +1,24 @@
+package ppkg1 is
+ type line is access string;
+ procedure rep1 (variable msg : line := new string (1 to 7));
+ procedure rep2;
+ procedure rep3;
+end ppkg1;
+
+package body ppkg1 is
+ procedure rep1 (variable msg : line := new string (1 to 7)) is
+ begin
+ msg.all := (msg'range => ' ');
+ end rep1;
+
+ procedure rep2 is
+ begin
+ rep1;
+ rep1;
+ end rep2;
+
+ procedure rep3 is
+ begin
+ rep1;
+ end rep3;
+end ppkg1;