]> git.lizzy.rs Git - rust.git/blob - tests/fail/unsupported_signal.rs
pointer tag tracking: on creation, log the offsets it is created for
[rust.git] / 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-windows: No libc on Windows
4 #![feature(rustc_private)]
5
6 extern crate libc;
7
8 fn main() {
9     unsafe {
10         libc::signal(libc::SIGPIPE, libc::SIG_IGN);
11         //~^ ERROR unsupported operation: can't call foreign function: signal
12     }
13 }