This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Parsing fix: it wasn't possible to call a function with a (_) prototype
[perl5.git]
/
t
/
comp
/
uproto.t
diff --git
a/t/comp/uproto.t
b/t/comp/uproto.t
index
b82a5a3
..
9b908eb
100644
(file)
--- a/
t/comp/uproto.t
+++ b/
t/comp/uproto.t
@@
-6,7
+6,7
@@
BEGIN {
require "./test.pl";
}
require "./test.pl";
}
-plan(tests => 3
8
);
+plan(tests => 3
9
);
sub f($$_) { my $x = shift; is("@_", $x) }
sub f($$_) { my $x = shift; is("@_", $x) }
@@
-55,6
+55,7
@@
g("foo");
g($expected);
$_ = $expected;
g();
g($expected);
$_ = $expected;
g();
+g;
undef $expected; &g; # $_ not passed
{ $expected = my $_ = "bar"; g() }
undef $expected; &g; # $_ not passed
{ $expected = my $_ = "bar"; g() }