Skip to content

Commit 2bfbf97

Browse files
authored
Rollup merge of #89579 - workingjubilee:regression-test-80108, r=Mark-Simulacrum
Add regression test for issue 80108 Closes #80108
2 parents 41dfaaa + 7fb6e1a commit 2bfbf97

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// only-wasm32
2+
// compile-flags: --crate-type=lib -Copt-level=2
3+
// build-pass
4+
#![feature(repr_simd)]
5+
6+
// Regression test for #80108
7+
8+
#[repr(simd)]
9+
pub struct Vector([i32; 4]);
10+
11+
impl Vector {
12+
pub const fn to_array(self) -> [i32; 4] {
13+
self.0
14+
}
15+
}

0 commit comments

Comments
 (0)