mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +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) };
|
|
}
|