rust/tests/ui/runtime/on-broken-pipe/not-used.rs
2024-05-20 11:13:10 -04:00

11 lines
288 B
Rust

//@ run-pass
//@ aux-build:sigpipe-utils.rs
//@ only-unix because SIGPIPE is a unix thing
fn main() {
extern crate sigpipe_utils;
// SIGPIPE shall be ignored since `-Zon-broken-pipe` is not used
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Ignore);
}