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