Skip to content

Commit 16f1074

Browse files
committed
RT #77736, END blocks should run after die
1 parent 8e9f1ef commit 16f1074

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

integration/error-reporting.t

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 11;
4+
plan 12;
55

66
BEGIN { @*INC.push('t/spec/packages') };
77

@@ -99,4 +99,13 @@ is_run 'sub mysub {
9999
out => '',
100100
}, 'warning reports correct line number and subroutine';
101101

102+
# RT #77736
103+
is_run 'die "foo"; END { say "end run" }',
104+
{
105+
status => * != 0,
106+
err => rx/foo/,
107+
out => "end run\n",
108+
},
109+
'END phasers are run after die()';
110+
102111
# vim: ft=perl6

0 commit comments

Comments
 (0)