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
},
"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");
+}