about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2017-08-29 14:48:59 -0700
committerJosh Stone <jistone@redhat.com>2017-09-01 18:21:29 -0700
commitafcc58abd3e1d20f1aa2f4c848e5b4b979235035 (patch)
tree1ba70b49f2aa469a916528675c37f36347d31f97
parenta9bb599fb14fab9a9acee13c590b11a47c392cf6 (diff)
downloadrust-afcc58abd3e1d20f1aa2f4c848e5b4b979235035.tar.gz
rust-afcc58abd3e1d20f1aa2f4c848e5b4b979235035.zip
Exclude x86_64-pc-windows-gnu from the float_one test
-rw-r--r--src/test/run-make/extern-fn-struct-passing-abi/test.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/run-make/extern-fn-struct-passing-abi/test.rs b/src/test/run-make/extern-fn-struct-passing-abi/test.rs
index 79fec9683a0..93cd6260e0c 100644
--- a/src/test/run-make/extern-fn-struct-passing-abi/test.rs
+++ b/src/test/run-make/extern-fn-struct-passing-abi/test.rs
@@ -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);
     }
 }