X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fmy.t;h=6feabe4e0a48191e266287e5df8940e2efc171c8;hb=a62b51b8b5ba4453033358d44b4729c019d6ae42;hp=bf5b6db3d3aad500feef9fc6f27a58ba8902c9b8;hpb=d07a55edad6afd25dba740156f34d6ba180fc2b2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/my.t b/t/op/my.t index bf5b6db..6feabe4 100755 --- a/t/op/my.t +++ b/t/op/my.t @@ -2,7 +2,7 @@ # $RCSfile: my.t,v $ -print "1..33\n"; +print "1..34\n"; sub foo { my($a, $b) = @_; @@ -111,3 +111,14 @@ print "ok 32\n"; eval { my $x = opth }; print "not " if $@; print "ok 33\n"; + + +sub foo3 { + ++my $x->{foo}; + print "not " if defined $x->{bar}; + ++$x->{bar}; +} +eval { foo3(); foo3(); }; +print "not " if $@; +print "ok 34\n"; +