8 eval "use Test::LeakTrace;";
9 plan skip_all => "Test::LeakTrace is required for this test" if $@;
14 # 5.10.0 has a bug on weaken($hash_ref) which leaks an AV.
15 my $expected = ( $] == 5.010_000 ? 1 : 0 );
18 Class::MOP::Class->create_anon_class();
20 '<=', $expected, 'create_anon_class()';
23 Class::MOP::Class->create_anon_class( superclasses => [qw(Exporter)] );
25 '<=', $expected, 'create_anon_class(superclass => [...])';