Fix run-pass/issue-2895 for 32-bit archs

This commit is contained in:
Brian Anderson 2012-10-20 14:52:31 -07:00
parent 55d134d29a
commit 15777de957

View File

@ -10,7 +10,14 @@ struct Kitty {
drop {}
}
#[cfg(target_arch = "x86_64")]
fn main() {
assert (size_of::<Cat>() == 8 as uint);
assert (size_of::<Kitty>() == 16 as uint);
}
#[cfg(target_arch = "x86")]
fn main() {
assert (size_of::<Cat>() == 4 as uint);
assert (size_of::<Kitty>() == 8 as uint);
}