1N/A#!./perl
1N/A
1N/ABEGIN {
1N/A chdir 't' if -d 't';
1N/A @INC = qw(../lib);
1N/A}
1N/A
1N/Arequire "./test.pl";
1N/A
1N/Aplan( tests => 2 );
1N/A
1N/A# Used to segfault (bug #15479)
1N/Afresh_perl_is(
1N/A '%:: = ""',
1N/A 'Odd number of elements in hash assignment at - line 1.',
1N/A { switches => [ '-w' ] },
1N/A 'delete $::{STDERR} and print a warning',
1N/A);
1N/A
1N/A# Used to segfault
1N/Afresh_perl_is(
1N/A 'BEGIN { $::{"X::"} = 2 }',
1N/A '',
1N/A { switches => [ '-w' ] },
1N/A q(Insert a non-GV in a stash, under warnings 'once'),
1N/A);