13 # Bug #77084 points out a corruption problem when scalar //g is used
14 # on overloaded objects.
18 use overload '""' => sub {$TAG};
21 my ($one) = $o =~ /(.*)/g;
22 push @realloc, "xxxxxx"; # encourage realloc of SV and PVX
23 is $one, $TAG, "list context //g against overloaded object";
26 my $r = $o =~ /(.*)/g;
27 push @realloc, "yyyyyy"; # encourage realloc of SV and PVX
28 is $1, $TAG, "scalar context //g against overloaded object";
29 pos ($o) = 0; # Reset pos, as //g in scalar context sets it to non-0.
32 push @realloc, "zzzzzz"; # encourage realloc of SV and PVX
33 is $1, $TAG, "void context //g against overloaded object";