rust/tests/panic/unsupported_syscall.rs

11 lines
238 B
Rust
Raw Normal View History

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