]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/intrinsic-alignment.rs
[emscripten] Disable code paths that don't work on emscripten
[rust.git] / src / test / run-pass / intrinsic-alignment.rs
index c970b17d2a1d49353ea94fca27bb2891ff7ab4c5..cfae9903a95e5ecd5204d7254228ee7f245319a7 100644 (file)
@@ -8,14 +8,13 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// pretty-expanded FIXME #23616
 
 #![feature(intrinsics, main)]
 
 mod rusti {
     extern "rust-intrinsic" {
-        pub fn pref_align_of<T>() -> uint;
-        pub fn min_align_of<T>() -> uint;
+        pub fn pref_align_of<T>() -> usize;
+        pub fn min_align_of<T>() -> usize;
     }
 }
 
@@ -23,7 +22,10 @@ mod rusti {
           target_os = "macos",
           target_os = "freebsd",
           target_os = "dragonfly",
-          target_os = "openbsd"))]
+          target_os = "netbsd",
+          target_os = "openbsd",
+          target_os = "solaris",
+          target_os = "emscripten"))]
 mod m {
     #[main]
     #[cfg(target_arch = "x86")]
@@ -35,7 +37,7 @@ pub fn main() {
     }
 
     #[main]
-    #[cfg(any(target_arch = "x86_64", target_arch = "arm", target_arch = "aarch64"))]
+    #[cfg(not(target_arch = "x86"))]
     pub fn main() {
         unsafe {
             assert_eq!(::rusti::pref_align_of::<u64>(), 8);