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

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