Skip to content

test: fix for missing ARM support #6020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/test/run-pass/bitwise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@


#[cfg(target_arch = "x86")]
#[cfg(target_arch = "arm")]
fn target() {
assert!((-1000 as uint >> 3u == 536870787u));
}
Expand Down
3 changes: 3 additions & 0 deletions src/test/run-pass/conditional-compile-arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ pub fn main() { }

#[cfg(target_arch = "x86_64")]
pub fn main() { }

#[cfg(target_arch = "arm")]
pub fn main() { }
3 changes: 3 additions & 0 deletions src/test/run-pass/dupe-first-attr.rc
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ mod hello;

#[cfg(target_os = "freebsd")]
mod hello;

#[cfg(target_os = "android")]
mod hello;
11 changes: 11 additions & 0 deletions src/test/run-pass/intrinsic-alignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,14 @@ mod m {
}
}
}

#[cfg(target_os = "android")]
mod m {
#[cfg(target_arch = "arm")]
pub fn main() {
unsafe {
assert!(::rusti::pref_align_of::<u64>() == 8u);
assert!(::rusti::min_align_of::<u64>() == 4u);
}
}
}
1 change: 1 addition & 0 deletions src/test/run-pass/issue-2895.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub fn main() {
}

#[cfg(target_arch = "x86")]
#[cfg(target_arch = "arm")]
pub fn main() {
assert!((sys::size_of::<Cat>() == 4 as uint));
assert!((sys::size_of::<Kitty>() == 8 as uint));
Expand Down
1 change: 1 addition & 0 deletions src/test/run-pass/rec-align-u32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ struct Outer {


#[cfg(target_arch = "x86")]
#[cfg(target_arch = "arm")]
mod m {
pub fn align() -> uint { 4u }
pub fn size() -> uint { 8u }
Expand Down
9 changes: 9 additions & 0 deletions src/test/run-pass/rec-align-u64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ mod m {
}
}

#[cfg(target_os = "android")]
mod m {
#[cfg(target_arch = "arm")]
pub mod m {
pub fn align() -> uint { 4u }
pub fn size() -> uint { 12u }
}
}

pub fn main() {
unsafe {
let x = Outer {c8: 22u8, t: Inner {c64: 44u64}};
Expand Down
1 change: 1 addition & 0 deletions src/test/run-pass/struct-return.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ fn test2() {
}

#[cfg(target_arch = "x86")]
#[cfg(target_arch = "arm")]
fn test2() {
}

Expand Down
1 change: 1 addition & 0 deletions src/test/run-pass/x86stdcall2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ pub fn main() {
#[cfg(target_os = "macos")]
#[cfg(target_os = "linux")]
#[cfg(target_os = "freebsd")]
#[cfg(target_os = "android")]
pub fn main() { }