]> git.lizzy.rs Git - rust.git/commitdiff
Make alignment-forcing case work the same on 64 and 32-bit platforms
authorJames Miller <james@aatch.net>
Tue, 23 Dec 2014 07:40:11 +0000 (20:40 +1300)
committerJames Miller <james@aatch.net>
Tue, 23 Dec 2014 07:44:06 +0000 (20:44 +1300)
src/test/run-pass/type-sizes.rs

index 677f7edd05b63a98552ee55819105501a87c3400..7c007cf9d33748130652eb5952344cc17e497941 100644 (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);
 }