rust/compiler/rustc_codegen_gcc/tests/run/gep.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
179 B
Rust
Raw Normal View History

2023-09-19 21:20:35 -05:00
// Compiler:
//
// Run-time:
// status: 0
fn main() {
let mut value = (1, 1);
let ptr = &mut value as *mut (i32, i32);
println!("{:?}", ptr.wrapping_offset(10));
}