]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/10-good.t
"use feature 'state'" as a prefix, so that we'll be able to skip it on older perls
[perl/modules/indirect.git] / t / 10-good.t
index da9b2d734fd6dd7b903691758ddbafceb20fb292..32b62ecbeeb9994f2134fdca9ceaf0e3cf46d355 100644 (file)
@@ -11,11 +11,8 @@ use warnings;
 
 use Test::More tests => 52 * 4;
 
-use feature 'state';
-
 my ($obj, $pkg, $cb, $x, @a);
 our $y;
-state $z;
 sub meh;
 
 {
@@ -150,9 +147,9 @@ meh $x, 1, 2;
 meh $y;
 ####
 meh $y, 1, 2;
-####
+#### # use feature 'state'; state $z
 meh $z;
-####
+#### # use feature 'state'; state $z
 meh $z, 1, 2;
 ####
 print;
@@ -166,9 +163,9 @@ print $x "oh hai\n";
 print $y;
 ####
 print $y "dongs\n";
-####
+#### # use feature 'state'; state $z
 print $z;
-####
+#### # use feature 'state'; state $z
 print $z "hlagh\n";
 ####
 print STDOUT "bananananananana\n";