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

13 lines
244 B
Rust
Raw Normal View History

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