Oops. As of some point one stopped being able to assign integers and
[p5sagit/p5-mst-13.2.git] / t / op / eval.t
index d64504c..7ab73ed 100755 (executable)
@@ -5,7 +5,7 @@ BEGIN {
     @INC = '../lib';
 }
 
-print "1..92\n";
+print "1..93\n";
 
 eval 'print "ok 1\n";';
 
@@ -449,3 +449,12 @@ stderr => 1);
 print "not " unless $got eq "ok\n";
 print "ok $test - eval and last\n"; $test++;
 
+# eval undef should be the same as eval "" barring any warnings
+
+{
+    local $@ = "foo";
+    eval undef;
+    print "not " unless $@ eq "";
+    print "ok $test # eval unef \n"; $test++;
+}
+