4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib');
15 # There was a bug with overloaded objects and threads.
16 # See rt.cpan.org 4218
17 eval { require threads; 'threads'->import; 1; };
20 use Test::More tests => 5;
26 q{""} => sub { $_[0]->{string} };
30 bless { string => shift }, $class;
37 local $SIG{__WARN__} = sub { $warnings = join '', @_ };
39 # overloaded object as name
40 my $obj = Overloaded->new('foo');
43 # overloaded object which returns undef as name
44 my $undef = Overloaded->new(undef);
51 my $obj = Overloaded->new('not really todo, testing overloaded reason');
53 fail("Just checking todo as an overloaded value");
58 my $obj = Overloaded->new('not really skipped, testing overloaded reason');