summary refs log tree commit diff
path: root/src/tools/miri/tests/panic/unsupported_syscall.rs
blob: 31d666e1d9d80f6f3a151631dd852c356f784524 (plain)
1
2
3
4
5
6
7
8
9
//@ignore-target-windows: No libc on Windows
//@ignore-target-apple: `syscall` is not supported on macOS
//@compile-flags: -Zmiri-panic-on-unsupported

fn main() {
    unsafe {
        libc::syscall(0);
    }
}