7 undef &Regexp::DESTROY;
12 $TODO = "leaking since 32751";
16 sub Regexp::DESTROY { $destroyed++ }
23 is( $destroyed, 1, "destroyed regexp" );
28 my $var = bless {}, "Foo";
29 my $rx = qr/(?{ $var })/;
32 is( $destroyed, 1, "destroyed regexp with closure capture" );