diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-30 02:34:48 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-30 02:34:48 +0000 |
commit | fc674faa7c9829511ccc23843333f69487c1657e (patch) | |
tree | 6c01f4c395e3f5b0483298855a3c7e5dacdd203c | |
parent | d5ae42cc2eafb092305612a6112876537ed48621 (diff) | |
download | perl-fc674faa7c9829511ccc23843333f69487c1657e.tar.gz |
Test for #9462.
p4raw-id: //depot/perl@9463
-rwxr-xr-x | t/lib/b.t | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |