rust/tests/fail/shims/backtrace/bad-backtrace-flags.rs
2022-08-17 21:50:23 -04:00

10 lines
235 B
Rust

extern "Rust" {
fn miri_get_backtrace(flags: u64, buf: *mut *mut ());
}
fn main() {
unsafe {
miri_get_backtrace(2, std::ptr::null_mut()); //~ ERROR: unsupported operation: unknown `miri_get_backtrace` flags 2
}
}