summaryrefslogtreecommitdiff
path: root/t/pragma/warn
diff options
context:
space:
mode:
Diffstat (limited to 't/pragma/warn')
-rw-r--r--t/pragma/warn/op12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/pragma/warn/op b/t/pragma/warn/op
index f3c0548e57..ab2124ea77 100644
--- a/t/pragma/warn/op
+++ b/t/pragma/warn/op
@@ -884,3 +884,15 @@ in begin
in mainline
in end
in end
+########
+# op.c
+my @x;
+use warnings 'misc' ;
+push(@x);
+unshift(@x);
+no warnings 'misc' ;
+push(@x);
+unshift(@x);
+EXPECT
+Useless use of push with no arguments at - line 4.
+Useless use of unshift with no arguments at - line 5.