diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1998-12-04 16:39:21 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1998-12-04 16:39:21 +0000 |
commit | d6a6df0ee9ee07f063378d5aadda440cf6de90ae (patch) | |
tree | 1950b464ba2ff9cf860e8cacaa5ae4edbf6783e4 /t | |
parent | b5a41e529034a0ee7e1a2e3e37537f713b54afbf (diff) | |
parent | 5e03713652a5a31e165226d9e78b9e3ea09b0a1d (diff) | |
download | perl-d6a6df0ee9ee07f063378d5aadda440cf6de90ae.tar.gz |
Integrate from mainperl.
p4raw-id: //depot/cfgperl@2449
Diffstat (limited to 't')
-rwxr-xr-x | t/op/goto.t | 12 | ||||
-rwxr-xr-x | t/op/tr.t | 13 |
2 files changed, 17 insertions, 8 deletions
diff --git a/t/op/goto.t b/t/op/goto.t index a62c89925b..8096aff0f2 100755 --- a/t/op/goto.t +++ b/t/op/goto.t @@ -2,7 +2,7 @@ # "This IS structured code. It's just randomly structured." -print "1..12\n"; +print "1..13\n"; while ($?) { $foo = 1; @@ -54,7 +54,7 @@ sub bar { exit; FINALE: -print "ok 12\n"; +print "ok 13\n"; exit; bypass: @@ -93,5 +93,13 @@ print $@ =~ /Can't find label NOWHERE/ ? "ok 8\n" : "not ok 8\n"; for (9..11) { start(bless([$_]), 'bar'); } } +sub auto { + goto &loadit; +} + +sub AUTOLOAD { print @_ } + +auto("ok 12\n"); + $wherever = FINALE; goto $wherever; @@ -22,12 +22,13 @@ print "ok 3\n"; # In EBCDIC 'I' is \xc9 and 'J' is \0xd1, 'i' is \x89 and 'j' is \x91. # Yes, discontinuities. Regardless, the \xca in the below should stay # untouched (and not became \x8a). +{ + no utf8; + $_ = "I\xcaJ"; -$_ = "I\xcaJ"; - -tr/I-J/i-j/; - -print "not " unless $_ eq "i\xcaj"; -print "ok 4\n"; + tr/I-J/i-j/; + print "not " unless $_ eq "i\xcaj"; + print "ok 4\n"; +} # |