Skip to content

Commit

Permalink
auto merge of #6020 : yichoi/rust/pull-0423, r=brson
Browse files Browse the repository at this point in the history
fix for missing ARM support to pass make stage of rpass
  • Loading branch information
bors committed Apr 23, 2013
2 parents da601be + 8eb22ec commit 54b0cbf
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 0 deletions.
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() { }

0 comments on commit 54b0cbf

Please sign in to comment.