rust/tests/ui/attributes/unix_sigpipe/unix_sigpipe-not-used.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
245 B
Rust
Raw Normal View History

// run-pass
// aux-build:sigpipe-utils.rs
fn main() {
extern crate sigpipe_utils;
// SIGPIPE shall be ignored since #[unix_sigpipe = "..."] is not used
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Ignore);
}