Skip to content

Commit

Permalink
Test to cover RT #129921.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 26, 2016
1 parent 78e4df6 commit 1f553c2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion S32-exceptions/misc.t
Expand Up @@ -5,7 +5,7 @@ use lib "t/spec/packages";
use Test;
use Test::Util;

plan 425;
plan 426;

throws-like '42 +', Exception, "missing rhs of infix", message => rx/term/;

Expand Down Expand Up @@ -945,4 +945,15 @@ throws-like 'sub foo(@array ($first, @rest)) { say @rest }; foo <1 2 3>;',
}}
}

# RT #129921
{
my $warned;
{
EVAL 'my $!a';
CONTROL { when CX::Warn { $warned = True; .resume } }
CATCH { default { } }
}
nok $warned, 'No warning when producing error for "my $!a"';
}

# vim: ft=perl6

0 comments on commit 1f553c2

Please sign in to comment.