Integrate with Sarathy; one conflict in t/pragma/warn/recgomp
[p5sagit/p5-mst-13.2.git] / t / pragma / warn / regcomp
CommitLineData
599cee73 1 regcomp.c AOK
2
3 %.*s matches null string many times
4
5 $a = "ABC123" ; $a =~ /(?=a)*/'
6
7 Strange *+?{} on zero-length expression
8
9 /(?=a)?/
10
599cee73 11 Character class syntax [. .] is reserved for future extensions
12 Character class syntax [= =] is reserved for future extensions
13
14__END__
15# regcomp.c
16use warning 'unsafe' ;
17my $a = "ABC123" ;
18$a =~ /(?=a)*/ ;
0453d815 19no warning 'unsafe' ;
20$a =~ /(?=a)*/ ;
599cee73 21EXPECT
22(?=a)* matches null string many times at - line 4.
23########
24# regcomp.c
25use warning 'unsafe' ;
26$_ = "" ;
27/(?=a)?/;
0453d815 28no warning 'unsafe' ;
29/(?=a)?/;
599cee73 30EXPECT
31Strange *+?{} on zero-length expression at - line 4.
32########
33# regcomp.c
34use warning 'unsafe' ;
35$_ = "" ;
b8c5462f 36/[:foo:]/;
37/[.bar.]/;
38/[=zog=]/;
0453d815 39no warning 'unsafe' ;
70c6d02e 40/[a[:foo:]b]/;
41/[a[.bar.]b]/;
42/[a[=zog=]b]/;
599cee73 43EXPECT
b8c5462f 44Character class syntax [: :] belongs inside character classes at - line 4.
45Character class syntax [. .] belongs inside character classes at - line 5.
46Character class syntax [. .] is reserved for future extensions at - line 5.
47Character class syntax [= =] belongs inside character classes at - line 6.
48Character class syntax [= =] is reserved for future extensions at - line 6.