p4raw-id: //depot/perl@27287
#!./perl
-print "1..78\n";
+print "1..79\n";
for ($i = 0; $i <= 10; $i++) {
$x[$i] = $i;
$r .= $i;
}
is ($r, '1CBA', 'Reverse for array and value via map with var');
+
+TODO: {
+ $test++;
+ no warnings 'reserved';
+ local $TODO = "RT #2166: foreach spuriously autovivifies";
+ my %h;
+ foreach (@h{a, b}) {}
+ if(keys(%h)) {
+ print "not ";
+ }
+ print "ok $test # TODO $TODO\n";
+}