xref: /llvm-project/lldb/test/Shell/SymbolFile/PDB/calling-conventions-x86.test (revision 01bc838e4512ad645f72afd1d6b613d12c929aa4)
1REQUIRES: system-windows, lld, (target-x86 || target-x86_64)
2RUN: %build --compiler=clang-cl --arch=32 --nodefaultlib --output=%t.exe %S/Inputs/CallingConventionsTest.cpp \
3RUN:  && lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix 32BIT-CHECK %s
4RUN: %build --compiler=clang-cl --arch=64 --nodefaultlib --output=%t.exe %S/Inputs/CallingConventionsTest.cpp \
5RUN:  && lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix 64BIT-CHECK %s
6
764BIT-CHECK: Module: {{.*}}
864BIT-CHECK-DAG: int (*FuncCCallPtr)();
964BIT-CHECK-DAG: int (*FuncStdCallPtr)();
1064BIT-CHECK-DAG: int (*FuncFastCallPtr)();
1164BIT-CHECK-DAG: int (*FuncVectorCallPtr)() __attribute__((vectorcall));
1264BIT-CHECK-DAG: int (S::*FuncThisCallPtr)();
13
1432BIT-CHECK: Module: {{.*}}
1532BIT-CHECK-DAG: int (*FuncCCallPtr)();
1632BIT-CHECK-DAG: int (*FuncStdCallPtr)() __attribute__((stdcall));
1732BIT-CHECK-DAG: int (*FuncFastCallPtr)() __attribute__((fastcall));
1832BIT-CHECK-DAG: int (*FuncVectorCallPtr)() __attribute__((vectorcall));
1932BIT-CHECK-DAG: int (S::*FuncThisCallPtr)() __attribute__((thiscall));
20