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:
279d09b
)
lexsub.t: Test state sub defined inside eval
author
Father Chrysostomos
<sprout@cpan.org>
Sun, 9 Sep 2012 18:09:53 +0000
(11:09 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Sun, 16 Sep 2012 05:45:09 +0000
(22:45 -0700)
t/cmd/lexsub.t
patch
|
blob
|
history
diff --git
a/t/cmd/lexsub.t
b/t/cmd/lexsub.t
index
ebf1188
..
24dc5b0
100644
(file)
--- a/
t/cmd/lexsub.t
+++ b/
t/cmd/lexsub.t
@@
-8,7
+8,7
@@
BEGIN {
*bar::like = *like;
}
no warnings 'deprecated';
-plan 12
1
;
+plan 12
2
;
# -------------------- our -------------------- #
@@
-286,6
+286,11
@@
sub make_anon_with_state_sub{
}
p(my @a);
}
+{
+ state sub x;
+ eval 'sub x {3}';
+ is x, 3, 'state sub defined inside eval';
+}
# -------------------- my -------------------- #