1BEGIN { print "1..1\n"; }
2
3BEGIN { $^W = 1; }
4BEGIN { $SIG{__WARN__} = sub { die "WARNING: $_[0]" }; }
5
6use warnings;   # this may load Carp
7use Carp ();
8
9my $badstr = do { no warnings "utf8"; "\x{ffff}" };
10sub dd { Carp::longmess() }
11dd($badstr);
12
13print "ok 1\n";
14
151;
16