diff options
author | Charles Bailey <bailey@newman.upenn.edu> | 1999-09-29 02:21:31 +0000 |
---|---|---|
committer | bailey <bailey@newman.upenn.edu> | 1999-09-29 02:21:31 +0000 |
commit | c529f79d594c53d3968d464c57ac24a21137dd09 (patch) | |
tree | 1a391a0c329976fd8ae88a240da31051b926c681 /t/pragma/warn/regcomp | |
parent | 424a8fe95d507998fe8750793da1b35bd6d7074b (diff) | |
download | perl-c529f79d594c53d3968d464c57ac24a21137dd09.tar.gz |
resync with mainline
p4raw-id: //depot/vmsperl@4249
Diffstat (limited to 't/pragma/warn/regcomp')
-rw-r--r-- | t/pragma/warn/regcomp | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/t/pragma/warn/regcomp b/t/pragma/warn/regcomp index 6aa9fa629e..9c3677ee10 100644 --- a/t/pragma/warn/regcomp +++ b/t/pragma/warn/regcomp @@ -1,18 +1,25 @@ regcomp.c AOK - %.*s matches null string many times + Strange *+?{} on zero-length expression [S_study_chunk] + /(?=a)?/ + %.*s matches null string many times [S_regpiece] $a = "ABC123" ; $a =~ /(?=a)*/' - Strange *+?{} on zero-length expression + /%.127s/: Unrecognized escape \\%c passed through" [S_regatom] + /\m/ - /(?=a)?/ + Character class syntax [. .] is reserved for future extensions [S_regpposixcc] + + Character class syntax [= =] is reserved for future extensions [S_checkposixcc] + + Character class syntax [%c %c] belongs inside character classes [S_checkposixcc] + - Character class syntax [. .] is reserved for future extensions - Character class syntax [= =] is reserved for future extensions + __END__ -# regcomp.c +# regcomp.c [S_regpiece] use warnings 'unsafe' ; my $a = "ABC123" ; $a =~ /(?=a)*/ ; @@ -21,7 +28,7 @@ $a =~ /(?=a)*/ ; EXPECT (?=a)* matches null string many times at - line 4. ######## -# regcomp.c +# regcomp.c [S_study_chunk] use warnings 'unsafe' ; $_ = "" ; /(?=a)?/; @@ -30,7 +37,14 @@ no warnings 'unsafe' ; EXPECT Strange *+?{} on zero-length expression at - line 4. ######## -# regcomp.c +# regcomp.c [S_regatom] +use warnings 'unsafe' ; +$a =~ /\m/ ; +no warnings 'unsafe' ; +EXPECT +Unrecognized escape \m passed through at - line 3. +######## +# regcomp.c [S_regpposixcc S_checkposixcc] use warnings 'unsafe' ; $_ = "" ; /[:alpha:]/; |