aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1051/repro.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue1051/repro.vhdl')
-rw-r--r--testsuite/gna/issue1051/repro.vhdl29
1 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/gna/issue1051/repro.vhdl b/testsuite/gna/issue1051/repro.vhdl
new file mode 100644
index 000000000..3ffa7571f
--- /dev/null
+++ b/testsuite/gna/issue1051/repro.vhdl
@@ -0,0 +1,29 @@
+entity repro is
+end repro;
+
+architecture behav of repro is
+ type msg_t is record
+ pfx : string;
+ func : string;
+ user : string;
+ end record;
+
+ procedure report_msg (m : msg_t) is
+ begin
+ report m.pfx & "." & m.func & ": " & m.user;
+ end report_msg;
+
+ procedure fill (pfx : string := "#err#"; usr : string := "none") is
+ constant m : msg_t := (pfx, "fill", usr);
+ begin
+ report_msg (m);
+ end fill;
+begin
+ process
+ begin
+ fill;
+ fill (pfx => "my err");
+ wait;
+ end process;
+end behav;
+