Skip to content

Commit

Permalink
Add test case for Issue 2895
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Oct 16, 2012
1 parent 7d84505 commit d293286
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/run-pass/issue-2895.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use sys::size_of;
extern mod std;

struct Cat {
x: int
}

struct Kitty {
x: int,
drop {}
}

fn main() {
assert (size_of::<Cat>() == 8 as uint);
assert (size_of::<Kitty>() == 16 as uint);
}

0 comments on commit d293286

Please # to comment.