3
# Since perl v5.14 (or thereabouts), a warning is issued when the autodie
4
# pragma is used and &File::chmod::chmod doesn't match the prototype of (@)
5
# that CORE::chmod has. Adding a prototype to &File::chmod::chmod silences
6
# the warning. This test ensures that the prototype doesn't get lost
7
# somewhere in the future.
18
$SIG{__WARN__} = sub {
20
if ( $msg =~ m/Prototype\s+mismatch:\s+sub\s+main::chmod/i ) {
27
ok( $test_passed, "Load File::chmod without 'Missing prototype' warning" );