diff options
| author | bors <bors@rust-lang.org> | 2019-06-21 10:16:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-06-21 10:16:14 +0000 |
| commit | 38cd9489f75f4a4387296ee304e2287f7c32c211 (patch) | |
| tree | a5426f237dab435b99a07bd123e42ff45a49c457 /src/test | |
| parent | 56a12b2ad058f22f1ef090713df15598525ba4a4 (diff) | |
| parent | d46a373b391cb546f5a737fd5009f7733c220531 (diff) | |
| download | rust-38cd9489f75f4a4387296ee304e2287f7c32c211.tar.gz rust-38cd9489f75f4a4387296ee304e2287f7c32c211.zip | |
Auto merge of #61959 - oli-obk:const_field_ice, r=eddyb
Fix a hash collision issue on the `const_field` query fixes #61530
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/incremental/issue-61530.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/incremental/issue-61530.rs b/src/test/incremental/issue-61530.rs new file mode 100644 index 00000000000..06b2957ac62 --- /dev/null +++ b/src/test/incremental/issue-61530.rs @@ -0,0 +1,17 @@ +#![feature(repr_simd, platform_intrinsics)] + +// revisions:rpass1 rpass2 + +#[repr(simd)] +struct I32x2(i32, i32); + +extern "platform-intrinsic" { + fn simd_shuffle2<T, U>(x: T, y: T, idx: [u32; 2]) -> U; +} + +fn main() { + unsafe { + let _: I32x2 = simd_shuffle2(I32x2(1, 2), I32x2(3, 4), [0, 0]); + let _: I32x2 = simd_shuffle2(I32x2(1, 2), I32x2(3, 4), [0, 0]); + } +} |
