/* saved or original string so \digit works forever. */ \
char *subbeg; \
SV_SAVED_COPY /* If non-NULL, SV which is COW from original */\
- I32 sublen; /* Length of string pointed by subbeg */ \
+ SSize_t sublen; /* Length of string pointed by subbeg */ \
I32 suboffset; /* byte offset of subbeg from logical start of str */ \
I32 subcoffset; /* suboffset equiv, but in chars (for @-/@+) */ \
/* Information about the match that isn't often used */ \
$Config{ptrsize} >= 8
or skip_all("Need 64-bit pointers for this test");
-plan(3);
+plan(4);
# [perl #116907]
# ${\2} to defeat constant folding, which in this case actually slows
$result .= "$&-";
}
is $result," -a-b-c-d-", 'scalar //g hopping past the 2**31 threshold';
+pos $x = 2**31+3;
+$x =~ /./g;
+is "$'", 'efg', q "$' after match against long string";