diff options
| author | sh8281.kim <sh8281.kim@samsung.com> | 2013-11-06 15:45:37 +0900 |
|---|---|---|
| committer | sh8281.kim <sh8281.kim@samsung.com> | 2013-11-06 15:45:37 +0900 |
| commit | 65d35ac7453a057c634b20cf67a839db0d195dfe (patch) | |
| tree | 5165bf2e6906a4e647283b54f6bdd36911e61fe7 | |
| parent | b17d4e335db38db731581fca104212fa13e8776d (diff) | |
| download | rust-65d35ac7453a057c634b20cf67a839db0d195dfe.tar.gz rust-65d35ac7453a057c634b20cf67a839db0d195dfe.zip | |
fix some cfail test cases for arm
| -rw-r--r-- | src/test/compile-fail/asm-in-bad-modifier.rs | 4 | ||||
| -rw-r--r-- | src/test/compile-fail/asm-out-assign-imm.rs | 3 | ||||
| -rw-r--r-- | src/test/compile-fail/asm-out-no-modifier.rs | 3 | ||||
| -rw-r--r-- | 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 4e934d98801..e55ca01cc08 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 599ab76e61c..437cf2f0d7b 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 b520c27c80e..1dda4e4ae2d 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 f49624295b1..11cfffe2475 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() {} |
