Skip to content

Commit

Permalink
Add test for RT #127062
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed May 8, 2016
1 parent 61e65a4 commit 1804479
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 390;
plan 391;

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

Expand Down Expand Up @@ -623,6 +623,17 @@ throws-like { $*an_undeclared_dynvar = 42 }, X::Dynamic::NotFound;
is_run q[$; my $b;], { status => 0, err => / ^ "WARNINGS" \N* \n "Useless use of unnamed \$ variable in sink context" / }, "unnamed var in sink context warns"
}

# RT #127062
{
is_run 'my @a = -1, 2, -3; print [+] (.abs + .abs for @a)',
{
status => 0,
out => '12',
err => ''
},
'no warning about Useless use of "+" in sink context';
}

# RT #114430
{
throws-like { ::('') }, X::NoSuchSymbol,
Expand Down

0 comments on commit 1804479

Please sign in to comment.