diff options
Diffstat (limited to 'tests/ui/abi/simd-abi-checks-empty-list.rs')
| -rw-r--r-- | tests/ui/abi/simd-abi-checks-empty-list.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/abi/simd-abi-checks-empty-list.rs b/tests/ui/abi/simd-abi-checks-empty-list.rs new file mode 100644 index 00000000000..ca0889364fc --- /dev/null +++ b/tests/ui/abi/simd-abi-checks-empty-list.rs @@ -0,0 +1,18 @@ +//@ add-core-stubs +//@ needs-llvm-components: sparc +//@ compile-flags: --target=sparc-unknown-none-elf --crate-type=rlib +//@ build-pass +//@ ignore-pass (test emits codegen-time warnings) +#![no_core] +#![feature(no_core, repr_simd)] +#![allow(improper_ctypes_definitions)] + +extern crate minicore; +use minicore::*; + +#[repr(simd)] +pub struct SimdVec([i32; 4]); + +pub extern "C" fn pass_by_vec(_: SimdVec) {} +//~^ this function definition uses SIMD vector type `SimdVec` which is not currently supported with the chosen ABI +//~| WARNING this was previously accepted by the compiler |
