about summary refs log tree commit diff
path: root/src/tools/miri/tests/fail-dep/libc/fs/close_stdout.rs
blob: 7911133f548ffdbbfa74cfc4d6c95c046589d426 (plain)
1
2
3
4
5
6
7
8
9
10
//@ignore-target: windows # No libc IO on Windows
//@compile-flags: -Zmiri-disable-isolation

// FIXME: standard handles cannot be closed (https://github.com/rust-lang/rust/issues/40032)

fn main() {
    unsafe {
        libc::close(1); //~ ERROR: cannot close stdout
    }
}