blob: b63f89e1393efad87ae43339fbade0cfc07a639f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
util.c AOK
Illegal octal digit ignored
my $a = oct "029" ;
Illegal hex digit ignored
my $a = hex "0xv9" ;
Illegal binary digit ignored
my $a = oct "0b9" ;
__END__
# util.c
use warning 'octal' ;
my $a = oct "029" ;
EXPECT
Illegal octal digit ignored at - line 3.
########
# util.c
use warning 'unsafe' ;
*a = hex "0xv9" ;
EXPECT
Illegal hex digit ignored at - line 3.
########
# util.c
use warning 'unsafe' ;
*a = oct "0b9" ;
EXPECT
Illegal binary digit ignored at - line 3.
|