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
Test for lack of uninit warnings in sub redef
[perl5.git]
/
t
/
lib
/
warnings
/
9uninit
diff --git
a/t/lib/warnings/9uninit
b/t/lib/warnings/9uninit
index
7d73f01
..
9f42689
100644
(file)
--- a/
t/lib/warnings/9uninit
+++ b/
t/lib/warnings/9uninit
@@
-2018,3
+2018,9
@@
my $moo = $Foo::BAR + 42;
__END__
EXPECT
Use of uninitialized value in addition (+) at - line 3.
__END__
EXPECT
Use of uninitialized value in addition (+) at - line 3.
+########
+use warnings 'uninitialized';
+use constant {u=>undef, v=>undef};
+sub foo () {u}
+sub foo () {v}
+EXPECT