diff options
| author | James Miller <james@aatch.net> | 2014-12-23 20:40:11 +1300 |
|---|---|---|
| committer | James Miller <james@aatch.net> | 2014-12-23 20:44:06 +1300 |
| commit | b473311ad8161c8d16412acb54f4188e737e4ca4 (patch) | |
| tree | ccb9dc63a9e611231f431961e240485a1da833f5 | |
| parent | fe7adfe631bc33fe4e48cd03bca77ea725252b07 (diff) | |
| download | rust-b473311ad8161c8d16412acb54f4188e737e4ca4.tar.gz rust-b473311ad8161c8d16412acb54f4188e737e4ca4.zip | |
Make alignment-forcing case work the same on 64 and 32-bit platforms
| -rw-r--r-- | src/test/run-pass/type-sizes.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/type-sizes.rs b/src/test/run-pass/type-sizes.rs index 677f7edd05b..7c007cf9d33 100644 --- a/src/test/run-pass/type-sizes.rs +++ b/src/test/run-pass/type-sizes.rs @@ -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); } |
