Skip to content

Commit a9c207d

Browse files
committed
fix tests on 32bit
1 parent b5d4499 commit a9c207d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/run-pass/align_offset.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ fn test_align_to() {
5656
}
5757

5858
{
59-
let (l, m, r) = unsafe { s.align_to::<u64>() }; // requested alignment higher than allocation alignment
59+
#[repr(align(8))] struct Align8(u64);
60+
let (l, m, r) = unsafe { s.align_to::<Align8>() }; // requested alignment higher than allocation alignment
6061
assert_eq!(l.len(), 4*N);
6162
assert_eq!(r.len(), 0);
6263
assert_eq!(m.len(), 0);

0 commit comments

Comments
 (0)