mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
433da1fc04
They pass fine.
6 lines
121 B
Rust
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) };
|
|
}
|