rust/tests/ui/simd/empty-simd-vector-in-operand.rs
Hadrien Eyraud ff699ce9f5 fix: running the test only on x86_64.
The test was failing on aarch64-apple-darwin.
2025-03-23 19:42:14 +01:00

16 lines
268 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());
//~^ use of empty SIMD vector `A`
}
}