p4raw-id: //depot/perl@23827
require './test.pl';
}
-plan tests => 95;
+plan 'no_plan';
$SIG{__WARN__} = sub { die @_ };
like $@, qr/Can't declare scalar dereference in my/;
-my @code = qw(assertion lvalue locked method);
+my @code = qw(lvalue locked method);
+unshift @code, 'assertion' if $] >= 5.009;
my @other = qw(shared unique);
my %valid;
$valid{CODE} = {map {$_ => 1} @code};
switch (SvTYPE(sv)) {
case SVt_PVCV:
switch ((int)len) {
+#ifdef CVf_ASSERTION
case 9:
if (memEQ(name, "assertion", 9)) {
if (negated)
continue;
}
break;
+#endif
case 6:
switch (name[3]) {
case 'l':