Skip to content

Commit

Permalink
Add testcase for #78266.
Browse files Browse the repository at this point in the history
  • Loading branch information
plu authored and Father Chrysostomos committed Dec 13, 2011
1 parent b28f4af commit a17b855
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion t/op/svleak.t
Expand Up @@ -13,7 +13,7 @@ BEGIN {
or skip_all("XS::APItest not available");
}

plan tests => 19;
plan tests => 20;

# run some code N times. If the number of SVs at the end of loop N is
# greater than (N-1)*delta at the end of loop 1, we've got a leak
Expand Down Expand Up @@ -141,3 +141,20 @@ leak(2, 0,
},
"rcatline leak"
);

{
my $RE = qr/
(?:
<(?<tag>
\s*
[^>\s]+
)>
)??
/xis;

"<html><body></body></html>" =~ m/$RE/gcs;

leak(5, 0, sub {
my $tag = $+{tag};
}, "named regexp captures");
}

0 comments on commit a17b855

Please sign in to comment.