rust/tests/ui/runtime/on-broken-pipe/not-used.rs

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

11 lines
288 B
Rust
Raw Permalink Normal View History

//@ run-pass
//@ aux-build:sigpipe-utils.rs
2024-04-18 15:50:06 -05:00
//@ 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);
}