summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-07 13:38:02 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-07 13:38:02 +0000
commite8c223dfc7b1035dd59e72c90f29f3f8b0634423 (patch)
treeae3fa13bccd6ea1d75224050a5a70c731558b2c7 /t
parent70c6d02e8060a55a75042c794203b8925b3151f3 (diff)
downloadperl-e8c223dfc7b1035dd59e72c90f29f3f8b0634423.tar.gz
Sync regcomp warn with reality.
p4raw-id: //depot/cfgperl@3649
Diffstat (limited to 't')
-rw-r--r--t/pragma/warn/regcomp21
1 files changed, 17 insertions, 4 deletions
diff --git a/t/pragma/warn/regcomp b/t/pragma/warn/regcomp
index f67fafade4..6545778a38 100644
--- a/t/pragma/warn/regcomp
+++ b/t/pragma/warn/regcomp
@@ -33,16 +33,29 @@ Strange *+?{} on zero-length expression at - line 4.
# regcomp.c
use warning 'unsafe' ;
$_ = "" ;
-/[:foo:]/;
+/[:alpha:]/;
/[.bar.]/;
/[=zog=]/;
+/[[:alpha:]]/;
+/[[.foo.]]/;
+/[[=bar=]]/;
+/[:zog:]/;
no warning 'unsafe' ;
-/[a[:foo:]b]/;
-/[a[.bar.]b]/;
-/[a[=zog=]b]/;
+/[:alpha:]/;
+/[.foo.]/;
+/[=bar=]/;
+/[[:alpha:]]/;
+/[[.foo.]]/;
+/[[=bar=]]/;
+/[:zog:]/;
+/[[:zog:]]/;
EXPECT
Character class syntax [: :] belongs inside character classes at - line 4.
Character class syntax [. .] belongs inside character classes at - line 5.
Character class syntax [. .] is reserved for future extensions at - line 5.
Character class syntax [= =] belongs inside character classes at - line 6.
Character class syntax [= =] is reserved for future extensions at - line 6.
+Character class syntax [. .] is reserved for future extensions at - line 8.
+Character class syntax [= =] is reserved for future extensions at - line 9.
+Character class syntax [: :] belongs inside character classes at - line 10.
+Character class [:zog:] unknown at - line 19.