Skip to content

Commit d293286

Browse files
committed
Add test case for Issue 2895
1 parent 7d84505 commit d293286

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/test/run-pass/issue-2895.rs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
use sys::size_of;
2+
extern mod std;
3+
4+
struct Cat {
5+
x: int
6+
}
7+
8+
struct Kitty {
9+
x: int,
10+
drop {}
11+
}
12+
13+
fn main() {
14+
assert (size_of::<Cat>() == 8 as uint);
15+
assert (size_of::<Kitty>() == 16 as uint);
16+
}

0 commit comments

Comments
 (0)