From 65d35ac7453a057c634b20cf67a839db0d195dfe Mon Sep 17 00:00:00 2001 From: "sh8281.kim" Date: Wed, 6 Nov 2013 15:45:37 +0900 Subject: [PATCH] fix some cfail test cases for arm --- src/test/compile-fail/asm-in-bad-modifier.rs | 4 +++- src/test/compile-fail/asm-out-assign-imm.rs | 3 ++- src/test/compile-fail/asm-out-no-modifier.rs | 3 ++- src/test/compile-fail/asm-out-read-uninit.rs | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/test/compile-fail/asm-in-bad-modifier.rs b/src/test/compile-fail/asm-in-bad-modifier.rs index 4e934d988019b..e55ca01cc0895 100644 --- a/src/test/compile-fail/asm-in-bad-modifier.rs +++ b/src/test/compile-fail/asm-in-bad-modifier.rs @@ -15,6 +15,8 @@ fn foo(x: int) { info!("{}", x); } #[cfg(target_arch = "x86")] #[cfg(target_arch = "x86_64")] +#[cfg(target_arch = "arm")] + pub fn main() { let x: int; let y: int; @@ -26,5 +28,5 @@ pub fn main() { foo(y); } -#[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"))] +#[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"), not(target_arch = "arm"))] pub fn main() {} diff --git a/src/test/compile-fail/asm-out-assign-imm.rs b/src/test/compile-fail/asm-out-assign-imm.rs index 599ab76e61ce9..437cf2f0d7be0 100644 --- a/src/test/compile-fail/asm-out-assign-imm.rs +++ b/src/test/compile-fail/asm-out-assign-imm.rs @@ -15,6 +15,7 @@ fn foo(x: int) { info!("{}", x); } #[cfg(target_arch = "x86")] #[cfg(target_arch = "x86_64")] +#[cfg(target_arch = "arm")] pub fn main() { let x: int; x = 1; //~ NOTE prior assignment occurs here @@ -25,5 +26,5 @@ pub fn main() { foo(x); } -#[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"))] +#[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"), not(target_arch = "arm"))] pub fn main() {} diff --git a/src/test/compile-fail/asm-out-no-modifier.rs b/src/test/compile-fail/asm-out-no-modifier.rs index b520c27c80ed0..1dda4e4ae2dc7 100644 --- a/src/test/compile-fail/asm-out-no-modifier.rs +++ b/src/test/compile-fail/asm-out-no-modifier.rs @@ -15,6 +15,7 @@ fn foo(x: int) { info!("{}", x); } #[cfg(target_arch = "x86")] #[cfg(target_arch = "x86_64")] +#[cfg(target_arch = "arm")] pub fn main() { let x: int; unsafe { @@ -23,5 +24,5 @@ pub fn main() { foo(x); } -#[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"))] +#[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"), not(target_arch = "arm"))] pub fn main() {} diff --git a/src/test/compile-fail/asm-out-read-uninit.rs b/src/test/compile-fail/asm-out-read-uninit.rs index f49624295b1de..11cfffe2475d9 100644 --- a/src/test/compile-fail/asm-out-read-uninit.rs +++ b/src/test/compile-fail/asm-out-read-uninit.rs @@ -15,6 +15,7 @@ fn foo(x: int) { info!("{}", x); } #[cfg(target_arch = "x86")] #[cfg(target_arch = "x86_64")] +#[cfg(target_arch = "arm")] pub fn main() { let x: int; unsafe { @@ -23,5 +24,5 @@ pub fn main() { foo(x); } -#[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"))] +#[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"), not(target_arch = "arm"))] pub fn main() {}