1
Fork 0

Correctly align all allocs

Fixes #348
This commit is contained in:
bjorn3 2019-03-30 18:22:43 +01:00
parent 2f0093b8c2
commit c4af588f72
4 changed files with 25 additions and 10 deletions

View file

@ -134,6 +134,10 @@ fn main() {
call_return_u128_pair();
let slice = &[0, 1] as &[i32];
let slice_ptr = slice as *const [i32] as *const i32;
assert_eq!(slice_ptr as usize % 4, 0);
//return;
unsafe {