projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26eb7f2
)
silence warning in new state.t test (spotted by Jerry Hedden)
author
Dave Mitchell
<davem@fdisolutions.com>
Mon, 10 Sep 2007 14:04:40 +0000
(14:04 +0000)
committer
Dave Mitchell
<davem@fdisolutions.com>
Mon, 10 Sep 2007 14:04:40 +0000
(14:04 +0000)
p4raw-id: //depot/perl@31840
t/op/state.t
patch
|
blob
|
history
diff --git
a/t/op/state.t
b/t/op/state.t
index
1c4fc8c
..
411ffaa
100644
(file)
--- a/
t/op/state.t
+++ b/
t/op/state.t
@@
-338,7
+338,7
@@
foreach my $spam (@spam) {
{
my $x; # used to force a closure
my @f;
- push @f, sub { $x; state $s = $_[0]; $s } for 1..2;
+ push @f, sub { $x
=0
; state $s = $_[0]; $s } for 1..2;
is $f[0]->(1), 1;
is $f[0]->(2), 1;
is $f[1]->(3), 3;