1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o - -cxx-abi microsoft \ 2*f4a2713aSLionel Sambuc // RUN: -triple=i386-pc-win32 | FileCheck %s 3*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-mingw32 | FileCheck %s 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc void __stdcall f1(void) {} 6*f4a2713aSLionel Sambuc // CHECK: define x86_stdcallcc void @"\01_f1@0" 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc void __fastcall f2(void) {} 9*f4a2713aSLionel Sambuc // CHECK: define x86_fastcallcc void @"\01@f2@0" 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc void __stdcall f3() {} 12*f4a2713aSLionel Sambuc // CHECK: define x86_stdcallcc void @"\01_f3@0" 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc void __fastcall f4(char a) {} 15*f4a2713aSLionel Sambuc // CHECK: define x86_fastcallcc void @"\01@f4@4" 16*f4a2713aSLionel Sambuc 17*f4a2713aSLionel Sambuc void __fastcall f5(short a) {} 18*f4a2713aSLionel Sambuc // CHECK: define x86_fastcallcc void @"\01@f5@4" 19*f4a2713aSLionel Sambuc 20*f4a2713aSLionel Sambuc void __fastcall f6(int a) {} 21*f4a2713aSLionel Sambuc // CHECK: define x86_fastcallcc void @"\01@f6@4" 22*f4a2713aSLionel Sambuc 23*f4a2713aSLionel Sambuc void __fastcall f7(long a) {} 24*f4a2713aSLionel Sambuc // CHECK: define x86_fastcallcc void @"\01@f7@4" 25*f4a2713aSLionel Sambuc 26*f4a2713aSLionel Sambuc void __fastcall f8(long long a) {} 27*f4a2713aSLionel Sambuc // CHECK: define x86_fastcallcc void @"\01@f8@8" 28*f4a2713aSLionel Sambuc 29*f4a2713aSLionel Sambuc void __fastcall f9(long long a, char b, char c, short d) {} 30*f4a2713aSLionel Sambuc // CHECK: define x86_fastcallcc void @"\01@f9@20"(i64 %a, i8 signext %b, i8 31*f4a2713aSLionel Sambuc // signext %c, i16 signext %d) 32*f4a2713aSLionel Sambuc 33*f4a2713aSLionel Sambuc void f12(void) {} 34*f4a2713aSLionel Sambuc // CHECK: define void @f12( 35