Skip to content

Commit

Permalink
Add test for RT #123696
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Feb 26, 2015
1 parent b92460c commit 1cd6489
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S02-names/strict.t
@@ -1,6 +1,6 @@
no strict;
use Test;
plan 5;
plan 6;

# L<S02/"Names"/"When \"strict\" is in effect (which is the default except for one-liners)">

Expand All @@ -23,3 +23,9 @@ is $Foo::foo, 42, 'lax declared variable is package scoped';
{
is EVAL('$bar'), Any, 'lax mode propagates into EVAL blocks'
}

# RT #123696
{
lives_ok { EVAL '(6;)' },
'"6;" no longer means "no strict;" and "(6;)" no langer results in a compile time error';
}

0 comments on commit 1cd6489

Please sign in to comment.