rust/tests/panic/unsupported_syscall.rs
2022-08-17 22:02:20 -04:00

10 lines
211 B
Rust

//@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);
}
}