1 // RUN: %clang_cc1 -triple x86_64-unknown-freebsd10.0 -emit-llvm < %s | FileCheck -check-prefix=FREEBSD %s
2 // RUN: %clang_cc1 -triple x86_64-pc-win32 -emit-llvm < %s | FileCheck -check-prefix=WIN64 %s
3 
4 void __attribute__((ms_abi)) f1(void);
5 void __attribute__((sysv_abi)) f2(void);
6 void f3(void) {
7 // FREEBSD: define void @f3()
8 // WIN64: define void @f3()
9   f1();
10 // FREEBSD: call x86_64_win64cc void @f1()
11 // WIN64: call void @f1()
12   f2();
13 // FREEBSD: call void @f2()
14 // WIN64: call x86_64_sysvcc void @f2()
15 }
16 // FREEBSD: declare x86_64_win64cc void @f1()
17 // FREEBSD: declare void @f2()
18 // WIN64: declare void @f1()
19 // WIN64: declare x86_64_sysvcc void @f2()
20 
21