p4raw-id: //depot/perl@25025
return 1;
}
-print "1..54\n";
+print "1..56\n";
$Is_MSWin32 = $^O eq 'MSWin32';
$Is_NetWare = $^O eq 'NetWare';
my @y = f();
ok( $x eq "@y", "return a magic array ($x) vs (@y)" );
}
+
+# Test for bug [perl #36434]
+{
+ local @ISA;
+ local %ENV;
+ eval { push @ISA, __PACKAGE__ };
+ ok( $@ eq '', 'Push a constant on a magic array', '#36434' );
+ $@ and print "# $@";
+ eval { %ENV = (PATH => __PACKAGE__) };
+ ok( $@ eq '', 'Assign a constant to a magic hash', '#36434' );
+ $@ and print "# $@";
+}