Skip to content

Commit

Permalink
Add enum size cases to type-sizes test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aatch committed Dec 22, 2014
1 parent f1a3ff0 commit fe7adfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/run-pass/type-sizes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ enum e1 {
enum e2 {
a(u32), b
}

enum e3 {
a([u64, ..0], u32), b
}
Expand All @@ -47,6 +48,7 @@ pub fn main() {

// Make sure enum types are the appropriate size, mostly
// around ensuring alignment is handled properly

assert_eq!(size_of::<e1>(), 8 as uint);
assert_eq!(size_of::<e2>(), 8 as uint);
assert_eq!(size_of::<e3>(), 16 as uint);
Expand Down

5 comments on commit fe7adfe

@bors
Copy link
Contributor

@bors bors commented on fe7adfe Dec 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at Aatch@fe7adfe

@bors
Copy link
Contributor

@bors bors commented on fe7adfe Dec 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging Aatch/rust/enum-repr = fe7adfe into auto

@bors
Copy link
Contributor

@bors bors commented on fe7adfe Dec 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status: {"merge_sha": "223971ca1dc12bb895cc59f2567c9902acbebbe4"}

@bors
Copy link
Contributor

@bors bors commented on fe7adfe Dec 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aatch/rust/enum-repr = fe7adfe merged ok, testing candidate = 223971ca

Please sign in to comment.