summaryrefslogtreecommitdiff
path: root/t/op/misc.t
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>1999-06-23 18:27:42 +0100
committerGurusamy Sarathy <gsar@cpan.org>1999-07-23 17:24:42 +0000
commit7399586d384137f7ae66bcc82a83b0df7dd429e5 (patch)
tree0614d50805aadb4a38255926340fe1c5a3bdeff8 /t/op/misc.t
parent59af01353dbbede40ae5b5d1b0330b847ffb82dc (diff)
downloadperl-7399586d384137f7ae66bcc82a83b0df7dd429e5.tar.gz
applied suggested patch for tracking line numbers correctly in
optimized blocks with a single statement; changed setcop to setstate and added code for -Dx dumps Message-Id: <199906231627.RAA24033@crypt.compulink.co.uk> Subject: [PATCH 5.005_57] Line number error in optimised else() p4raw-id: //depot/perl@3728
Diffstat (limited to 't/op/misc.t')
-rwxr-xr-xt/op/misc.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/op/misc.t b/t/op/misc.t
index 8281bf0e77..926c7f38d0 100755
--- a/t/op/misc.t
+++ b/t/op/misc.t
@@ -497,3 +497,11 @@ END { print $foo }
';
EXPECT
ZZZ
+########
+-w
+if (@ARGV) { print "" }
+else {
+ if ($x == 0) { print "" } else { print $x }
+}
+EXPECT
+Use of uninitialized value at - line 4.