1
Fork 0
rust/tests/ui/simd/empty-simd-vector-in-operand.rs
2025-04-08 23:06:31 +03:00

15 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`
}
}