This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
in Carp, fix circular dep on Perl 5.6
[perl5.git]
/
dist
/
Carp
/
t
/
with_warnings.t
Commit
Line
Data
edda670c
Z
1
BEGIN { print "1..1\n"; }
2
3
use Carp ();
4
use warnings ();
5
$SIG{__WARN__} = sub {};
6
eval { warnings::warn("syntax", "foo") };
7
print $@ eq "" ? "" : "not ", "ok 1\n";
8
9
1;