summaryrefslogtreecommitdiff
path: root/t/op/gv.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-09-26 11:53:37 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-09-26 11:53:37 +0000
commitdd6c8177e5440c89519dc12801e5cda199096ebf (patch)
tree18e00fc2f64385cdad27445e042f42d0adc13df7 /t/op/gv.t
parent4d53c495c2a0f024ad6171ab9f65569251f8d0ec (diff)
downloadperl-dd6c8177e5440c89519dc12801e5cda199096ebf.tar.gz
(Retracted by #12233.)
p4raw-id: //depot/perl@12232
Diffstat (limited to 't/op/gv.t')
-rwxr-xr-xt/op/gv.t22
1 files changed, 11 insertions, 11 deletions
diff --git a/t/op/gv.t b/t/op/gv.t
index a423cb49ed..c9f7a86c99 100755
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -11,7 +11,7 @@ BEGIN {
use warnings;
-print "1..41\n";
+print "1..42\n";
# type coersion on assignment
$foo = 'foo';
@@ -105,16 +105,6 @@ print ref *x{FORMAT} eq "FORMAT" ? "ok 21\n" : "not ok 21\n";
print *{*x{GLOB}} eq "*main::STDOUT" ? "ok 22\n" : "not ok 22\n";
print {*x{IO}} "ok 23\n";
-{
- my $warn;
- local $SIG{__WARN__} = sub {
- $warn .= $_[0];
- };
- my $val = *x{FILEHANDLE};
- print {*x{IO}} ($warn =~ /is deprecated/ ? "ok 24\n" : "not ok 24\n");
-
-}
-
# test if defined() doesn't create any new symbols
{
@@ -185,5 +175,15 @@ print {*x{IO}} "ok 23\n";
print $g;
}
+{
+ my $warn;
+ local $SIG{__WARN__} = sub {
+ $warn .= $_[0];
+ };
+ my $val = *x{FILEHANDLE};
+ print {*x{IO}} ($warn =~ /is deprecated/ ? "ok 42\n" : "not ok 42\n");
+
+}
+
__END__
ok 41