diff options
Diffstat (limited to 'tests/ui/attributes/unix_sigpipe/unix_sigpipe-error.rs')
| -rw-r--r-- | tests/ui/attributes/unix_sigpipe/unix_sigpipe-error.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/attributes/unix_sigpipe/unix_sigpipe-error.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-error.rs new file mode 100644 index 00000000000..0a42a5b5ef1 --- /dev/null +++ b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-error.rs @@ -0,0 +1,13 @@ +// run-pass +// aux-build:sigpipe-utils.rs + +#![feature(unix_sigpipe)] + +#[unix_sigpipe = "sig_ign"] +fn main() { + extern crate sigpipe_utils; + + // #[unix_sigpipe = "sig_ign"] is active, so the legacy behavior of ignoring + // SIGPIPE shall be in effect + sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Ignore); +} |
