summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/sanitizer-cdylib-link/library.rs
blob: f2a52cb5ca1c50faff3b60499fe6a46f2c3ddeb6 (plain)
1
2
3
4
5
#[no_mangle]
pub extern "C" fn overflow() {
    let xs = [0, 1, 2, 3];
    let _y = unsafe { *xs.as_ptr().offset(4) };
}