mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
20 lines
583 B
Rust
20 lines
583 B
Rust
|
//@ 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, lang_items, repr_simd)]
|
||
|
#![allow(improper_ctypes_definitions)]
|
||
|
#[lang = "sized"]
|
||
|
trait Sized {}
|
||
|
|
||
|
#[lang = "copy"]
|
||
|
trait Copy {}
|
||
|
|
||
|
#[repr(simd)]
|
||
|
pub struct SimdVec([i32; 4]);
|
||
|
|
||
|
pub extern "C" fn pass_by_vec(_: SimdVec) {}
|
||
|
//~^ this function definition uses a SIMD vector type that is not currently supported with the chosen ABI
|
||
|
//~| WARNING this was previously accepted by the compiler
|