Skip to content

Commit afcc58a

Browse files
committed
Exclude x86_64-pc-windows-gnu from the float_one test
1 parent a9bb599 commit afcc58a

File tree

1 file changed

+5
-1
lines changed
  • src/test/run-make/extern-fn-struct-passing-abi

1 file changed

+5
-1
lines changed

src/test/run-make/extern-fn-struct-passing-abi/test.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ fn main() {
133133
assert_eq!(sret_byval_struct(1, 2, 3, 4, s), t);
134134
assert_eq!(sret_split_struct(1, 2, s), t);
135135
assert_eq!(float_point(p), p);
136-
assert_eq!(float_one(f1), f1);
137136
assert_eq!(int_odd(i), i);
137+
138+
// mingw64-gcc uses the wrong ABI:
139+
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82028
140+
#[cfg(not(all(windows, target_arch = "x86_64", target_env = "gnu")))]
141+
assert_eq!(float_one(f1), f1);
138142
}
139143
}

0 commit comments

Comments
 (0)