rust/tests/panic/unsupported_syscall.rs
2022-08-06 15:30:00 -04:00

11 lines
238 B
Rust

//@ignore-target-windows: No libc on Windows
//@ignore-target-apple: `syscall` is not supported on macOS
//@compile-flags: -Zmiri-panic-on-unsupported
#![feature(rustc_private)]
fn main() {
unsafe {
libc::syscall(0);
}
}