]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/unsupported_signal.rs
Rollup merge of #105459 - jyn514:proc-macro-default, r=Mark-Simulacrum
[rust.git] / src / tools / miri / tests / fail / unsupported_signal.rs
1 //! `signal()` is special on Linux and macOS that it's only supported within libstd.
2 //! The implementation is not complete enough to permit user code to call it.
3 //@ignore-target-windows: No libc on Windows
4
5 fn main() {
6     unsafe {
7         libc::signal(libc::SIGPIPE, libc::SIG_IGN);
8         //~^ ERROR: unsupported operation: can't call foreign function: signal
9     }
10 }