From: Rafael Garcia-Suarez Date: Thu, 30 Jun 2005 16:15:31 +0000 (+0000) Subject: Add TODO tests for bug #36434 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4c9140ed7ab4bc4874ef56d7df13268d895ad433;p=p5sagit%2Fp5-mst-13.2.git Add TODO tests for bug #36434 p4raw-id: //depot/perl@25025 --- diff --git a/t/op/magic.t b/t/op/magic.t index dccb563..154a3cc 100755 --- a/t/op/magic.t +++ b/t/op/magic.t @@ -36,7 +36,7 @@ sub skip { return 1; } -print "1..54\n"; +print "1..56\n"; $Is_MSWin32 = $^O eq 'MSWin32'; $Is_NetWare = $^O eq 'NetWare'; @@ -426,3 +426,15 @@ ok "@+" eq "10 1 6 10"; 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 "# $@"; +}