Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added test for RT #68728
  • Loading branch information
Jimmy Zhuo committed Feb 23, 2011
1 parent f47e392 commit f8f23b9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions S04-statements/try.t
Expand Up @@ -103,6 +103,21 @@ plan 17;
is $catches, 1, 'CATCH does not catch exceptions thrown within it';
}

# RT #68728
{
my $str = '';
try {
say abc;
CATCH {
$str ~= 'A';
if 'foo' ~~ /foo/ {
$str ~= 'B';
$str ~= $/;
}
}
}
is $str, 'ABfoo', 'block including if structure and printing $/ OK';
}
done;

# vim: ft=perl6

0 comments on commit f8f23b9

Please sign in to comment.