summaryrefslogtreecommitdiff
path: root/t/lib/warnings/op
diff options
context:
space:
mode:
Diffstat (limited to 't/lib/warnings/op')
-rw-r--r--t/lib/warnings/op11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/lib/warnings/op b/t/lib/warnings/op
index 0079146ad3..d3a2d548fe 100644
--- a/t/lib/warnings/op
+++ b/t/lib/warnings/op
@@ -108,6 +108,9 @@
mkdir "foo", 777;
umask 222;
+ Use of "package" with no arguments is deprecated
+ package;
+
Mandatory Warnings
------------------
Prototype mismatch: [cv_ckproto]
@@ -958,3 +961,11 @@ mkdir "", 777;
EXPECT
Non-octal literal mode (777) specified at - line 3.
(Did you mean 0777 instead?)
+########
+# op.c
+use warnings 'deprecated' ;
+package;
+no warnings 'deprecated' ;
+package;
+EXPECT
+Use of "package" with no arguments is deprecated at - line 3.