]> git.proxmox.com Git - rustc.git/blob - src/test/compile-fail/E0442.rs
New upstream version 1.13.0+dfsg1
[rustc.git] / src / test / compile-fail / E0442.rs
1 // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #![feature(repr_simd)]
12 #![feature(platform_intrinsics)]
13
14 #[repr(simd)]
15 struct i8x16(i8, i8, i8, i8, i8, i8, i8, i8,
16 i8, i8, i8, i8, i8, i8, i8, i8);
17 #[repr(simd)]
18 struct i32x4(i32, i32, i32, i32);
19 #[repr(simd)]
20 struct i64x2(i64, i64);
21
22 extern "platform-intrinsic" {
23 fn x86_mm_adds_epi16(x: i8x16, y: i32x4) -> i64x2;
24 //~^ ERROR E0442
25 //~| ERROR E0442
26 //~| ERROR E0442
27 }
28
29 fn main() {}