llvm-project/lldb/lit/SymbolFile/PDB/calling-conventions.test
Aleksandr Urakov bc4707cc17 [PDB] Restore the calling convention from PDB
Summary:
This patch implements restoring of the calling convention from PDB.
It is necessary for expressions evaluation, if we want to call a function
of the debuggee process with a calling convention other than ccall.

Reviewers: clayborg, zturner, labath, asmith

Reviewed By: clayborg

Subscribers: teemperor, lldb-commits, stella.stamenova

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D52501

llvm-svn: 343084
2018-09-26 09:03:34 +00:00

12 lines
541 B
Plaintext

REQUIRES: windows, lld
RUN: clang-cl -m32 /Zi /GS- /c %S/Inputs/CallingConventionsTest.cpp /o %t.obj
RUN: lld-link /debug:full /nodefaultlib /entry:main %t.obj /out:%t.exe
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck %s
CHECK: Module: {{.*}}
CHECK-DAG: int (*FuncCCallPtr)();
CHECK-DAG: int (*FuncStdCallPtr)() __attribute__((stdcall));
CHECK-DAG: int (*FuncFastCallPtr)() __attribute__((fastcall));
CHECK-DAG: int (*FuncVectorCallPtr)() __attribute__((vectorcall));
CHECK-DAG: int (S::*FuncThisCallPtr)() __attribute__((thiscall));