Fix tests.

This commit is contained in:
Vadim Chugunov 2014-08-01 01:51:08 -07:00
parent 5a24ee8a9e
commit cb55279f23
2 changed files with 15 additions and 0 deletions

View file

@ -51,6 +51,15 @@ mod m {
assert_eq!(::rusti::min_align_of::<u64>(), 8u);
}
}
#[main]
#[cfg(target_arch = "x86_64")]
pub fn main() {
unsafe {
assert_eq!(::rusti::pref_align_of::<u64>(), 8u);
assert_eq!(::rusti::min_align_of::<u64>(), 8u);
}
}
}
#[cfg(target_os = "android")]

View file

@ -61,6 +61,12 @@ mod m {
pub fn align() -> uint { 8u }
pub fn size() -> uint { 16u }
}
#[cfg(target_arch = "x86_64")]
pub mod m {
pub fn align() -> uint { 8u }
pub fn size() -> uint { 16u }
}
}
#[cfg(target_os = "android")]