4 if ($ENV{'PERL_CORE'}){
22 use MIME::Base64 qw(decode_base64);
29 $SIG{__WARN__} = sub { push(@warn, @_) };
33 $a = decode_base64("aa");
34 $a = decode_base64("a===");
42 decode_base64("a===");
51 decode_base64("a===");
59 print "not " unless join("", @warn) eq <<"EOT"; print "ok 1\n";
60 Warning: something's wrong at $0 line 31.
61 Premature end of base64 data at $0 line 33.
62 Premature padding of base64 data at $0 line 34.
63 Warning: something's wrong at $0 line 35.
64 Premature end of base64 data at $0 line 38.
65 Premature padding of base64 data at $0 line 42.
66 Warning: something's wrong at $0 line 44.
67 Warning: something's wrong at $0 line 53.