summaryrefslogtreecommitdiff
path: root/t/pragma/warn/7fatal
diff options
context:
space:
mode:
Diffstat (limited to 't/pragma/warn/7fatal')
-rw-r--r--t/pragma/warn/7fatal34
1 files changed, 34 insertions, 0 deletions
diff --git a/t/pragma/warn/7fatal b/t/pragma/warn/7fatal
index 382a8458e5..a25fa2c2ea 100644
--- a/t/pragma/warn/7fatal
+++ b/t/pragma/warn/7fatal
@@ -276,3 +276,37 @@ $a =+ 1 ;
print STDERR "The End.\n" ;
EXPECT
Reversed += operator at - line 8.
+########
+
+use warnings 'void' ;
+
+time ;
+
+{
+ use warnings FATAL => qw(void) ;
+ length "abc" ;
+}
+
+join "", 1,2,3 ;
+
+print "done\n" ;
+EXPECT
+Useless use of time in void context at - line 4.
+Useless use of length in void context at - line 8.
+########
+
+use warnings ;
+
+time ;
+
+{
+ use warnings FATAL => qw(void) ;
+ length "abc" ;
+}
+
+join "", 1,2,3 ;
+
+print "done\n" ;
+EXPECT
+Useless use of time in void context at - line 4.
+Useless use of length in void context at - line 8.