Skip to content

Commit 7fb6e1a

Browse files
Add regression test for issue 80108
1 parent 175b8db commit 7fb6e1a

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)