rust/tests/run/gep.rs
2023-09-20 09:10:24 -04:00

11 lines
179 B
Rust

// 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));
}