t/op/qq.t See if qq works
t/op/qrstack.t See if qr expands the stack properly
t/op/qr.t See if qr works
+t/op/qr_gc.t See if qr doesn't leak
t/op/quotemeta.t See if quotemeta works
t/op/rand.t See if rand works
t/op/range.t See if .. works
--- /dev/null
+#!./perl -w
+
+BEGIN {
+ chdir 't' if -d 't';
+ @INC = '../lib';
+ require './test.pl';
+}
+
+plan tests => 2;
+
+$TODO = "leaking since 32751";
+
+my $destroyed;
+{
+ no warnings 'redefine';
+ sub Regexp::DESTROY { $destroyed++ }
+}
+
+{
+ my $rx = qr//;
+}
+
+is( $destroyed, 1, "destroyed regexp" );
+
+undef $destroyed;
+
+{
+ my $var = bless {}, "Foo";
+ my $rx = qr/(?{ $var })/;
+}
+
+is( $destroyed, 1, "destroyed regexp with closure capture" );
+