X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fpragma%2Fwarn%2F7fatal;h=a25fa2c2ea202e2223ad34e5f709e9a9ac16ebe4;hb=22d4bb9ccb8701e68f9243547d7e3a3c55f70908;hp=382a8458e559cefe816d03fae96d73f63142cdae;hpb=4b19af017623bfa3bb72bb164598a517f586e0d3;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/pragma/warn/7fatal b/t/pragma/warn/7fatal index 382a845..a25fa2c 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.