defined @array and defined %hash need no warnings 'deprecated';
[p5sagit/p5-mst-13.2.git] / t / op / my.t
old mode 100755 (executable)
new mode 100644 (file)
index 6feabe4..6a477db
--- a/t/op/my.t
+++ b/t/op/my.t
@@ -1,8 +1,6 @@
 #!./perl
 
-# $RCSfile: my.t,v $
-
-print "1..34\n";
+print "1..36\n";
 
 sub foo {
     my($a, $b) = @_;
@@ -122,3 +120,13 @@ eval { foo3(); foo3(); };
 print "not " if $@;
 print "ok 34\n";
 
+# my $foo = undef should always assign [perl #37776]
+{
+    my $count = 35;
+    loop:
+    my $test = undef;
+    print "not " if defined $test;
+    print "ok $count\n";
+    $test = 42;
+    goto loop if ++$count < 37;
+}