AIX exhibits different error on failed system().
[p5sagit/p5-mst-13.2.git] / t / pragma / warn / 6default
CommitLineData
0453d815 1Check default warnings
2
3__END__
4# default warning should be displayed if you don't add anything
5# optional shouldn't
6my $a = oct "7777777777777777777777777777777777779" ;
7EXPECT
8Integer overflow in octal number at - line 3.
9########
10# no warning should be displayed
11no warning ;
12my $a = oct "7777777777777777777777777777777777779" ;
13EXPECT
252aa082 14Integer overflow in octal number at - line 3.
0453d815 15########
16# all warning should be displayed
17use warning ;
252aa082 18my $a = oct "77777777797";
0453d815 19EXPECT
0453d815 20Illegal octal digit '9' ignored at - line 3.
21########
22# check scope
23use warning ;
252aa082 24my $a = oct "77777777797";
0453d815 25{
26 no warning ;
252aa082 27 my $b = oct "77777777797";
0453d815 28}
29my $c = oct "7777777777777777777777777777777777779" ;
30EXPECT
0453d815 31Illegal octal digit '9' ignored at - line 3.
252aa082 32Octal number > 037777777777 non-portable at - line 8.
0453d815 33Integer overflow in octal number at - line 8.