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
Tests for perl #94476
[perl5.git]
/
t
/
op
/
ref.t
diff --git
a/t/op/ref.t
b/t/op/ref.t
index
299ccdb
..
a568d88
100644
(file)
--- a/
t/op/ref.t
+++ b/
t/op/ref.t
@@
-8,7
+8,7
@@
BEGIN {
use strict qw(refs subs);
-plan(22
8
);
+plan(22
9
);
# Test glob operations.
@@
-119,6
+119,7
@@
is (join(':',@{$spring2{"foo"}}), "1:2:3:4");
&$subref;
is ($called, 1);
}
+is ref eval {\&{""}}, "CODE", 'reference to &{""} [perl #94476]';
# Test references to return values of operators (TARGs/PADTMPs)
{