]> git.lizzy.rs Git - rust.git/commitdiff
fix some cfail test cases for arm
authorsh8281.kim <sh8281.kim@samsung.com>
Wed, 6 Nov 2013 06:45:37 +0000 (15:45 +0900)
committersh8281.kim <sh8281.kim@samsung.com>
Wed, 6 Nov 2013 06:45:37 +0000 (15:45 +0900)
src/test/compile-fail/asm-in-bad-modifier.rs
src/test/compile-fail/asm-out-assign-imm.rs
src/test/compile-fail/asm-out-no-modifier.rs
src/test/compile-fail/asm-out-read-uninit.rs

index 4e934d988019b45709b2d1d5924393857adbb09c..e55ca01cc0895e40c971541cdcd65cfc24d218b4 100644 (file)
@@ -15,6 +15,8 @@
 
 #[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() {}
index 599ab76e61ce9c5cc79a4a6628ba29d7db2a911e..437cf2f0d7be0e64b940c177a00943bbdfdf8a84 100644 (file)
@@ -15,6 +15,7 @@
 
 #[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() {}
index b520c27c80ed013648440a7085f5da3c82b0e232..1dda4e4ae2dc78930d0d8bedb357b824853c8688 100644 (file)
@@ -15,6 +15,7 @@
 
 #[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() {}
index f49624295b1debde02e0cfd6ab11337fd06b81b0..11cfffe2475d9743accffd17afd25bbc67b44449 100644 (file)
@@ -15,6 +15,7 @@
 
 #[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() {}