diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-11-13 11:17:10 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-11-13 11:17:10 +0000 |
commit | 3cd0a11a1a8c5cc6b632f666275eeafcb6f5c950 (patch) | |
tree | ef5cb137d86c08beb687f51c2676780541be79de /t/comp | |
parent | 0d520e8e301fa0eda31a3f68440e7e9b426a290f (diff) | |
download | perl-3cd0a11a1a8c5cc6b632f666275eeafcb6f5c950.tar.gz |
Parsing fix: it wasn't possible to call a function with a (_) prototype
(that is, a function mimicing an unary op) without parentheses.
Bug reported by Ævar Arnfjörð Bjarmason.
p4raw-id: //depot/perl@29258
Diffstat (limited to 't/comp')
-rw-r--r-- | t/comp/uproto.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/comp/uproto.t b/t/comp/uproto.t index b82a5a3e02..9b908eb54a 100644 --- a/t/comp/uproto.t +++ b/t/comp/uproto.t @@ -6,7 +6,7 @@ BEGIN { require "./test.pl"; } -plan(tests => 38); +plan(tests => 39); sub f($$_) { my $x = shift; is("@_", $x) } @@ -55,6 +55,7 @@ g("foo"); g($expected); $_ = $expected; g(); +g; undef $expected; &g; # $_ not passed { $expected = my $_ = "bar"; g() } |