rust/tests/run-pass/panic/unsupported_syscall.rs

13 lines
244 B
Rust

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