summaryrefslogtreecommitdiff
path: root/ext/B
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-05 14:13:48 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-05 14:13:48 +0000
commitf7c278bfa9715e5e699e162924f507b3b71db8fd (patch)
tree0aaf84a222dcd4a126464cf9bf3fd3c4345f8874 /ext/B
parentefd26800e76b6f876fd6abe3a3f7e3e4128150a9 (diff)
downloadperl-f7c278bfa9715e5e699e162924f507b3b71db8fd.tar.gz
Abolish wrapped in struct regexp - store the wrapped pattern pointer
in the SvPVX(). p4raw-id: //depot/perl@32841
Diffstat (limited to 'ext/B')
-rw-r--r--ext/B/t/optree_constants.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/B/t/optree_constants.t b/ext/B/t/optree_constants.t
index c05138b633..bf6384b3bd 100644
--- a/ext/B/t/optree_constants.t
+++ b/ext/B/t/optree_constants.t
@@ -59,7 +59,11 @@ my $want = { # expected types, how value renders in-line, todos (maybe)
myaref => [ $RV_class, '\\\\' ],
myfl => [ 'NV', myfl ],
myint => [ 'IV', myint ],
+ $] >= 5.011 ? (
+ myrex => [ $RV_class, '\\\\"\\(?-xism:Foo\\)"' ],
+ ) : (
myrex => [ $RV_class, '\\\\' ],
+ ),
myundef => [ 'NULL', ],
) : (
myaref => [ 'PVIV', '' ],