Fix run-pass/issue-2895 for 32-bit archs
This commit is contained in:
parent
55d134d29a
commit
15777de957
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user