]> git.lizzy.rs Git - rust.git/commitdiff
Exclude x86_64-pc-windows-gnu from the float_one test
authorJosh Stone <jistone@redhat.com>
Tue, 29 Aug 2017 21:48:59 +0000 (14:48 -0700)
committerJosh Stone <jistone@redhat.com>
Sat, 2 Sep 2017 01:21:29 +0000 (18:21 -0700)
src/test/run-make/extern-fn-struct-passing-abi/test.rs

index 79fec9683a0144fc0596afc744aaa32e5e73bc3b..93cd6260e0c7b82498ce2acbac13393d129f2c7d 100644 (file)
@@ -133,7 +133,11 @@ fn main() {
         assert_eq!(sret_byval_struct(1, 2, 3, 4, s), t);
         assert_eq!(sret_split_struct(1, 2, s), t);
         assert_eq!(float_point(p), p);
-        assert_eq!(float_one(f1), f1);
         assert_eq!(int_odd(i), i);
+
+        // mingw64-gcc uses the wrong ABI:
+        // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82028
+        #[cfg(not(all(windows, target_arch = "x86_64", target_env = "gnu")))]
+        assert_eq!(float_one(f1), f1);
     }
 }