Make alignment-forcing case work the same on 64 and 32-bit platforms

This commit is contained in:
James Miller 2014-12-23 20:40:11 +13:00
parent fe7adfe631
commit b473311ad8

View File

@ -26,7 +26,7 @@ enum e2 {
}
enum e3 {
a([u64, ..0], u32), b
a([u16, ..0], u8), b
}
pub fn main() {
@ -51,5 +51,5 @@ pub fn main() {
assert_eq!(size_of::<e1>(), 8 as uint);
assert_eq!(size_of::<e2>(), 8 as uint);
assert_eq!(size_of::<e3>(), 16 as uint);
assert_eq!(size_of::<e3>(), 4 as uint);
}