mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 18:57:19 +00:00
16 lines
274 B
Rust
16 lines
274 B
Rust
// Regression test for issue #134224.
|
|
//@ only-x86_64
|
|
|
|
#![feature(repr_simd)]
|
|
|
|
#[repr(simd)]
|
|
struct A();
|
|
//~^ ERROR SIMD vector cannot be empty
|
|
|
|
fn main() {
|
|
unsafe {
|
|
std::arch::asm!("{}", in(xmm_reg) A());
|
|
//~^ ERROR use of empty SIMD vector `A`
|
|
}
|
|
}
|