# Regression tests for attributes.pm and the C< : attrs> syntax.
-use warnings;
-
BEGIN {
+ if ($ENV{PERL_CORE_MINITEST}) {
+ print "1..0 # skip: miniperl can't load attributes\n";
+ exit 0;
+ }
chdir 't' if -d 't';
@INC = '../lib';
require './test.pl';
}
-plan 83;
+use warnings;
+
+plan 84;
$SIG{__WARN__} = sub { die @_ };
is $@, '';
eval 'package Cat; my Cat @socks;';
-like $@, qr/^Can't declare class for non-scalar \@socks in "my"/;
+like $@, '';
+
+eval 'my Cat %nap;';
+like $@, '';
sub X::MODIFY_CODE_ATTRIBUTES { die "$_[0]" }
sub X::foo { 1 }