Test for #9462.
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 30 Mar 2001 02:34:48 +0000 (02:34 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 30 Mar 2001 02:34:48 +0000 (02:34 +0000)
p4raw-id: //depot/perl@9463

t/lib/b.t

index 0589d16..9cadaf7 100755 (executable)
--- a/t/lib/b.t
+++ b/t/lib/b.t
@@ -15,7 +15,7 @@ use warnings;
 use strict;
 use Config;
 
-print "1..18\n";
+print "1..19\n";
 
 my $test = 1;
 
@@ -70,6 +70,11 @@ use constant 'c', 'stuff';
 print "not " if (eval "sub ".$deparse->coderef2text(\&c))->() ne 'stuff';
 ok;
 
+$a = 0;
+print "not " if "{\n    (-1) ** \$a;\n}"
+               ne $deparse->coderef2text(sub{(-1) ** $a });
+ok;
+
 # XXX ToDo - constsub that returns a reference
 #use constant cr => ['hello'];
 #my $string = "sub " . $deparse->coderef2text(\&cr);