1 // run-pass
2 // revisions: x64 x32
3 // [x64]only-x86_64
4 // [x32]only-x86
5 
6 #![feature(abi_vectorcall)]
7 
8 trait A {
test1(i: i32)9     extern "vectorcall" fn test1(i: i32);
10 }
11 
12 struct S;
13 
14 impl A for S {
test1(i: i32)15     extern "vectorcall" fn test1(i: i32) {
16         assert_eq!(i, 1);
17     }
18 }
19 
test2(i: i32)20 extern "vectorcall" fn test2(i: i32) {
21     assert_eq!(i, 2);
22 }
23 
main()24 fn main() {
25     <S as A>::test1(1);
26     test2(2);
27 }
28