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
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff55166
)
Test that constant overloading is propagated into eval
author
Robin Houston
<robin@cpan.org>
Mon, 26 Dec 2005 17:56:48 +0000
(17:56 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 29 Dec 2005 10:21:23 +0000
(10:21 +0000)
Message-ID: <
20051226175648
.GA28402@rpc142.cs.man.ac.uk>
p4raw-id: //depot/perl@26521
lib/overload.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/overload.t
b/lib/overload.t
index
a30a53b
..
9614e1e
100644
(file)
--- a/
lib/overload.t
+++ b/
lib/overload.t
@@
-1201,6
+1201,13
@@
foreach my $op (qw(<=> == != < <= > >=)) {
}
+{
+ my $twenty_three = 23;
+ # Check that constant overloading propagates into evals
+ BEGIN { overload::constant integer => sub { 23 } }
+ test(eval "17", $twenty_three);
+}
+
# Last test is:
-sub last {49
7
}
+sub last {49
8
}