diff options
| author | Ralf Jung <post@ralfj.de> | 2023-09-08 08:02:02 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-09-08 13:25:51 +0200 |
| commit | e726be21abcf688c62107330a2ae10e055d0303c (patch) | |
| tree | 8efac7e38455339c97cf7e76469e3cd2bbe4166e | |
| parent | b0cf4c28ea0f2ac0a7c6fb5bc3ee4291b7595c24 (diff) | |
| download | rust-e726be21abcf688c62107330a2ae10e055d0303c.tar.gz rust-e726be21abcf688c62107330a2ae10e055d0303c.zip | |
need to disable part of this test on arm
| -rw-r--r-- | tests/ui/abi/compatibility.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/ui/abi/compatibility.rs b/tests/ui/abi/compatibility.rs index c5c476ac46d..0bbcba200c7 100644 --- a/tests/ui/abi/compatibility.rs +++ b/tests/ui/abi/compatibility.rs @@ -105,7 +105,6 @@ test_transparent!(zst, Zst); test_transparent!(unit, ()); test_transparent!(pair, (i32, f32)); // mixing in some floats since they often get special treatment test_transparent!(triple, (i8, i16, f32)); // chosen to fit into 64bit -test_transparent!(float_triple, (f64, f64, f64)); // hits a bug in our MIPS64 adjustments test_transparent!(tuple, (i32, f32, i64, f64)); test_transparent!(empty_array, [u32; 0]); test_transparent!(empty_1zst_array, [u8; 0]); @@ -113,6 +112,14 @@ test_transparent!(small_array, [i32; 2]); // chosen to fit into 64bit test_transparent!(large_array, [i32; 16]); test_transparent!(enum_, Option<i32>); test_transparent!(enum_niched, Option<&'static i32>); +// Pure-float types that are not ScalarPair seem to be tricky. +// FIXME: <https://github.com/rust-lang/rust/issues/115664> +#[cfg(not(any(target_arch = "arm", target_arch = "aarch64")))] +mod tricky { + use super::*; + test_transparent!(triple_f32, (f32, f32, f32)); + test_transparent!(triple_f64, (f64, f64, f64)); +} // RFC 3391 <https://rust-lang.github.io/rfcs/3391-result_ffi_guarantees.html>. macro_rules! test_nonnull { |
