summary refs log tree commit diff
path: root/src/tools/miri/tests/panic/unsupported_syscall.rs
blob: bbb076b169a6af94716960091b0f92b2bce0734b (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);
    }
}