p4raw-id: //depot/perl@23788
sub AUTOLOAD {
require "utf8_heavy.pl";
goto &$AUTOLOAD if defined &$AUTOLOAD;
+ require Carp;
Carp::croak("Undefined subroutine $AUTOLOAD called");
}
#
#
-plan tests => 145;
+plan tests => 146;
{
# bug id 20001009.001
utf8::upgrade($b);
is($b, $a, "utf8::upgrade OffsetOK");
}
+
+{
+ fresh_perl_like ('use utf8; utf8::moo()',
+ qr/Undefined subroutine utf8::moo/, {stderr=>1},
+ "Check Carp is loaded for AUTOLOADing errors")
+}