2015-12-02 17:07:29 -08:00
|
|
|
#![feature(repr_simd)]
|
|
|
|
|
#![allow(dead_code)]
|
2015-01-16 10:16:20 +11:00
|
|
|
|
2015-12-02 17:07:29 -08:00
|
|
|
#[repr(simd)]
|
|
|
|
|
#[derive(Copy, Clone)]
|
2024-08-22 01:28:20 -07:00
|
|
|
struct LocalSimd([u8; 2]);
|
2015-01-16 10:16:20 +11:00
|
|
|
|
2020-09-01 17:12:52 -04:00
|
|
|
extern "C" {
|
2015-01-16 10:16:20 +11:00
|
|
|
fn baz() -> LocalSimd; //~ ERROR use of SIMD type
|
|
|
|
|
fn qux(x: LocalSimd); //~ ERROR use of SIMD type
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|