3
use Test::More tests => 4;
5
use vars qw/@warnings/;
7
BEGIN { $SIG{__WARN__} = sub { push @warnings, $_ } }
14
BEGIN { is(@warnings, 0, 'no prototype warnings with signatures in scope') }
18
BEGIN { is(@warnings, 1, 'warning without signatures in scope') }
24
BEGIN { is(@warnings, 1, 'no more warnings') }
30
BEGIN { is(@warnings, 2, 'disabling magic with unimport') }