summaryrefslogtreecommitdiff
path: root/t/lib/warnings/9uninit
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-11-22 08:35:37 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-11-22 09:32:57 -0800
commit50de2b3a27dc3b906062d35ae0f9733aa106baf3 (patch)
tree589792c04eb7a0b1642053c12cb05735f3f6524d /t/lib/warnings/9uninit
parent27a6968ba35b6cbe9590b659be9641ced651ef8b (diff)
downloadperl-50de2b3a27dc3b906062d35ae0f9733aa106baf3.tar.gz
Move a test from t/lib/warnings/sv to .../9uninit
I think .../sv is for warnings originating from code in sv.c, not just any uninitialized warnings, the code for handling which is in sv.c. We have 9uninit for a reason.
Diffstat (limited to 't/lib/warnings/9uninit')
-rw-r--r--t/lib/warnings/9uninit7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/lib/warnings/9uninit b/t/lib/warnings/9uninit
index 9f42689808..6123fd03cb 100644
--- a/t/lib/warnings/9uninit
+++ b/t/lib/warnings/9uninit
@@ -2024,3 +2024,10 @@ use constant {u=>undef, v=>undef};
sub foo () {u}
sub foo () {v}
EXPECT
+########
+# [perl #72090]
+use warnings 'uninitialized';
+$a = @$a > 0;
+EXPECT
+Use of uninitialized value $a in array dereference at - line 3.
+Use of uninitialized value in numeric gt (>) at - line 3.