diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-11-25 15:42:07 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-11-25 15:42:07 +0000 |
commit | 48bfcc53740a66ec5a66616b846e1db9955c1c69 (patch) | |
tree | 2de7728957d83a013605f4f68638b4bbef4565a2 /t | |
parent | fd206186f8bcdcb1b41bbddfb851c60acb937fcd (diff) | |
parent | d40103885dfef00fdafa10024e6e4d5e414d1403 (diff) | |
download | perl-48bfcc53740a66ec5a66616b846e1db9955c1c69.tar.gz |
Integrate from ansi branch to mainline.
p4raw-id: //depot/perl@296
Diffstat (limited to 't')
-rwxr-xr-x | t/op/misc.t | 11 | ||||
-rwxr-xr-x | t/op/ref.t | 12 |
2 files changed, 19 insertions, 4 deletions
diff --git a/t/op/misc.t b/t/op/misc.t index c529830123..326273aff1 100755 --- a/t/op/misc.t +++ b/t/op/misc.t @@ -345,3 +345,14 @@ EXPECT Unmatched right bracket at (re_eval 1) line 1, at end of line syntax error at (re_eval 1) line 1, near ""{"}" Compilation failed in regexp at - line 1. +######## +BEGIN { @ARGV = qw(a b c) } +BEGIN { print "argv <@ARGV>\nbegin <",shift,">\n" } +END { print "end <",shift,">\nargv <@ARGV>\n" } +INIT { print "init <",shift,">\n" } +EXPECT +argv <a b c> +begin <a> +init <b> +end <c> +argv <> diff --git a/t/op/ref.t b/t/op/ref.t index 9fcc8ac15c..56925177d1 100755 --- a/t/op/ref.t +++ b/t/op/ref.t @@ -1,6 +1,6 @@ #!./perl -print "1..51\n"; +print "1..52\n"; # Test glob operations. @@ -231,12 +231,16 @@ $bar = "ok 48"; local(*bar) = *bar; print "$bar\n"; +$var = "ok 49"; +$_ = \$var; +print $$_,"\n"; + package FINALE; { - $ref3 = bless ["ok 51\n"]; # package destruction - my $ref2 = bless ["ok 50\n"]; # lexical destruction - local $ref1 = bless ["ok 49\n"]; # dynamic destruction + $ref3 = bless ["ok 52\n"]; # package destruction + my $ref2 = bless ["ok 51\n"]; # lexical destruction + local $ref1 = bless ["ok 50\n"]; # dynamic destruction 1; # flush any temp values on stack } |