rust/tests/run-make-fulldeps/sanitizer-dylib-link/library.rs
2023-01-11 09:32:08 +00:00

6 lines
121 B
Rust

#[no_mangle]
pub extern "C" fn overflow() {
let xs = [0, 1, 2, 3];
let _y = unsafe { *xs.as_ptr().offset(4) };
}