Skip to content

Commit

Permalink
Rollup merge of #89579 - workingjubilee:regression-test-80108, r=Mark…
Browse files Browse the repository at this point in the history
…-Simulacrum

Add regression test for issue 80108

Closes #80108
  • Loading branch information
matthiaskrgr authored Oct 10, 2021
2 parents 41dfaaa + 7fb6e1a commit 2bfbf97
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/ui/wasm/simd-to-array-80108.rs
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 2bfbf97

Please sign in to comment.