rust/tests/fail/backtrace/bad-backtrace-ptr.rs
2022-07-11 11:48:56 +00:00

10 lines
204 B
Rust

extern "Rust" {
fn miri_resolve_frame(ptr: *mut (), flags: u64);
}
fn main() {
unsafe {
miri_resolve_frame(std::ptr::null_mut(), 0); //~ ERROR: null pointer is a dangling pointer
}
}