Files
clang-p2996/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp
Amy Huang f3bd773abd Replace pdb file used in llvm-symbolizer test with a smaller file.
Reduce the size of the test-columns.pdb file from 6MB to 72KB by not
including standard libraries when building. Also update the instructions
for building the exe/pdb files.

context https://reviews.llvm.org/D81950#3692893

Differential Revision: https://reviews.llvm.org/D131035
2022-08-03 09:58:26 -07:00

31 lines
543 B
C++

// To generate the corresponding EXE/PDB (add -gcolumn-info for line columns):
// clang -cc1 -triple x86_64-pc-windows-msvc -gcodeview -debug-info-kind=constructor -emit-obj test.cpp
// lld-link test.obj -debug -entry:main
namespace NS {
struct Foo {
void bar() {}
};
}
void foo() {
}
static void private_symbol() {
}
int main() {
foo();
NS::Foo f;
f.bar();
private_symbol();
}
extern "C" {
void __cdecl foo_cdecl() {}
void __stdcall foo_stdcall() {}
void __fastcall foo_fastcall() {}
void __vectorcall foo_vectorcall() {}
}