Skip to content

Commit fe7adfe

Browse files
committed
Add enum size cases to type-sizes test
1 parent f1a3ff0 commit fe7adfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/run-pass/type-sizes.rs

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ enum e1 {
2424
enum e2 {
2525
a(u32), b
2626
}
27+
2728
enum e3 {
2829
a([u64, ..0], u32), b
2930
}
@@ -47,6 +48,7 @@ pub fn main() {
4748

4849
// Make sure enum types are the appropriate size, mostly
4950
// around ensuring alignment is handled properly
51+
5052
assert_eq!(size_of::<e1>(), 8 as uint);
5153
assert_eq!(size_of::<e2>(), 8 as uint);
5254
assert_eq!(size_of::<e3>(), 16 as uint);

0 commit comments

Comments
 (0)