rust/tests/compile-fail/backtrace/bad-backtrace-flags.rs
2022-03-19 18:14:11 -07:00

10 lines
225 B
Rust

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