fix tests on 32bit
This commit is contained in:
parent
b5d449949a
commit
a9c207dce2
1 changed files with 2 additions and 1 deletions
|
|
@ -56,7 +56,8 @@ fn test_align_to() {
|
|||
}
|
||||
|
||||
{
|
||||
let (l, m, r) = unsafe { s.align_to::<u64>() }; // requested alignment higher than allocation alignment
|
||||
#[repr(align(8))] struct Align8(u64);
|
||||
let (l, m, r) = unsafe { s.align_to::<Align8>() }; // requested alignment higher than allocation alignment
|
||||
assert_eq!(l.len(), 4*N);
|
||||
assert_eq!(r.len(), 0);
|
||||
assert_eq!(m.len(), 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue