summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/t/pragma/warn/8signal
blob: d480f1902a91812d83f9bcde6de1ef8d61c791b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Check interaction of __WARN__, __DIE__ & lexical Warnings

TODO

__END__
# 8signal
BEGIN { $| = 1; $SIG{__WARN__} = sub { print "WARN -- @_" } }
BEGIN { $SIG{__DIE__}  = sub { print "DIE -- @_" } }
1 if 1 EQ 2 ;
use warnings qw(deprecated) ;
1 if 1 EQ 2 ;
use warnings FATAL => qw(deprecated) ;
1 if 1 EQ 2 ;
print "The End.\n" ;
EXPECT
WARN -- Use of EQ is deprecated at - line 6.
DIE -- Use of EQ is deprecated at - line 8.
Use of EQ is deprecated at - line 8.
OpenPOWER on IntegriCloud