blob: b23b90d6fcd4a51d7be8d2a3aa945139349663cc [file] [log] [blame]
//! `signal()` is special on Linux and macOS that it's only supported within libstd.
//! The implementation is not complete enough to permit user code to call it.
//@ignore-target: windows # No `libc: #signal` on Windows
//@normalize-stderr-test: "OS `.*`" -> "$$OS"
fn main() {
unsafe {
libc::signal(libc::SIGPIPE, libc::SIG_IGN);
//~^ ERROR: unsupported operation: can't call foreign function `signal`
}
}