From 5bd3c2ccf36ce92257616c709460b0006f4f1f7f Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 2 Sep 2015 18:24:07 +0200 Subject: Add bug024 (crash in error message). --- testsuite/gna/bug024/ppkg1.vhdl | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 testsuite/gna/bug024/ppkg1.vhdl (limited to 'testsuite/gna/bug024/ppkg1.vhdl') diff --git a/testsuite/gna/bug024/ppkg1.vhdl b/testsuite/gna/bug024/ppkg1.vhdl new file mode 100644 index 0000000..88b7128 --- /dev/null +++ b/testsuite/gna/bug024/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 ppkg is + procedure rep1 (msg : line := new string (1 to 7)) is + begin + msg.all := (others => ' '); + end rep1; + + procedure rep2 is + begin + rep1; + rep1; + end rep2; + + procedure rep3 is + begin + rep1; + end rep3; +end ppkg; -- cgit