Files
rust/src/test/ui/extern/extern-vectorcall.rs

27 lines
349 B
Rust
Raw Normal View History

// run-pass
2016-10-25 19:56:36 +02:00
// ignore-arm
// ignore-aarch64
#![feature(abi_vectorcall)]
trait A {
extern "vectorcall" fn test1(i: i32);
}
struct S;
impl A for S {
extern "vectorcall" fn test1(i: i32) {
assert_eq!(i, 1);
}
}
extern "vectorcall" fn test2(i: i32) {
assert_eq!(i, 2);
}
fn main() {
<S as A>::test1(1);
test2(2);
}