1 // FIXME move this to run-pass, it should work with intptrcast.
7 let x = &v as *const [i16; 2] as *const i16;
8 let x = unsafe { x.offset(1) };
9 assert_eq!(unsafe { *x }, 2);
13 let p = f as fn() -> i32 as usize;
14 let x = (p as *mut u32).offset(0) as usize;
15 let f: fn() -> i32 = std::mem::transmute(x);