summaryrefslogtreecommitdiffstats
path: root/tests/ui/attributes/unix_sigpipe/unix_sigpipe-not-used.rs
blob: 100b4ce9f74fceffca71dcc76050f483f6cc89e3 (plain)
1
2
3
4
5
6
7
8
9
// 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);
}