rust/tests/ui/wasm/simd-to-array-80108.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
263 B
Rust
Raw Normal View History

2021-10-06 06:46:19 +08:00
//@ only-wasm32
//@ compile-flags: --crate-type=lib -Copt-level=2
//@ build-pass
#![feature(repr_simd)]
// Regression test for #80108
#[repr(simd)]
pub struct Vector([i32; 4]);
impl Vector {
pub const fn to_array(self) -> [i32; 4] {
self.0
}
}