Rollup merge of #89579 - workingjubilee:regression-test-80108, r=Mark-Simulacrum

Add regression test for issue 80108

Closes #80108
This commit is contained in:
Matthias Krüger 2021-10-11 00:34:37 +02:00 committed by GitHub
commit 2bfbf97762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,15 @@
// 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
}
}