Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test for RT #125876.
  • Loading branch information
jnthn committed Sep 19, 2015
1 parent 1db8547 commit 406c27b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S04-statements/while.t
Expand Up @@ -4,7 +4,7 @@ use v6;

use Test;

plan 9;
plan 10;

{
my $i = 0;
Expand Down Expand Up @@ -74,4 +74,7 @@ plan 9;
'keyword needs at least one whitespace after it');
}

# RT #125876
lives-ok { EVAL 'while 0 { my $_ }' }, 'Can declare $_ in a loop body';

# vim: ft=perl6

0 comments on commit 406c27b

Please sign in to comment.