diff options
Diffstat (limited to 'testsuite/gna/issue1051/repro2.vhdl')
-rw-r--r-- | testsuite/gna/issue1051/repro2.vhdl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gna/issue1051/repro2.vhdl b/testsuite/gna/issue1051/repro2.vhdl new file mode 100644 index 000000000..76d31deb2 --- /dev/null +++ b/testsuite/gna/issue1051/repro2.vhdl @@ -0,0 +1,28 @@ +entity repro2 is +end repro2; + +architecture behav of repro2 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 + begin + report_msg (m => (pfx, "fill", usr)); + end fill; +begin + process + begin + fill; + fill (pfx => "my err"); + wait; + end process; +end behav; + |