This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
warnings for perlio + others
[perl5.git] / t / lib / warnings / perlio
CommitLineData
0453d815
PM
1 perlio.c
2
3
4 Mandatory Warnings ALL TODO
5 ------------------
6 Setting cnt to %d
7 Setting ptr %p > end+1 %p
8 Setting cnt to %d, ptr implies %d
9
99ef548b
PM
10
11perlio: invalid separator character %c%c%c in layer specification list %s
12
13 open(F, ">:-aa", "bb")
14
15
16perlio: argument list not closed for layer \"%.*s\""
17
18 open(F, ">:aa(", "bb")
19
20perlio: unknown layer \"%.*s\"
21
22 # PerlIO/xyz.pm has 1;
23 open(F, ">xyz", "bb")
24
0453d815 25__END__
99ef548b
PM
26
27# perlio [PerlIO_parse_layers]
28no warnings 'layer';
29open(F, ">:-aa", "bb");
30use warnings 'layer';
31open(F, ">:-aa", "bb");
32EXPECT
33perlio: invalid separator character '-' in layer specification list -aa at - line 6.
34########
35
36# perlio [PerlIO_parse_layers]
37no warnings 'layer';
38open(F, ">:aa(", "bb");
39use warnings 'layer';
40open(F, ">:aa(", "bb");
41EXPECT
42perlio: argument list not closed for layer "aa(" at - line 6.
43########
44
45--FILE-- PerlIO/xyz.pm
461;
47--FILE--
48# perlio [PerlIO_parse_layers]
49no warnings 'layer';
50open(F, ">:xyz", "bb");
51#use warnings 'layer';
52use warnings ;
53open(F, ">:xyz", "bb");
54EXPECT
55perlio: unknown layer "xyz".