Debian Codegraph @

llvm/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp

raw
1 // To generate the corresponding EXE/PDB (add -gcolumn-info for line columns):
2 // clang -cc1 -triple x86_64-pc-windows-msvc -gcodeview -debug-info-kind=constructor -emit-obj test.cpp
3 // lld-link test.obj -debug -entry:main
4
5 namespace NS {
6 struct Foo {
7 void bar() {}
8 };
9 }
10
11 void foo() {
12 }
13
14 static void private_symbol() {
15 }
16
17 int main() {
18 foo();
19
20 NS::Foo f;
21 f.bar();
22 private_symbol();
23 }
24
25 extern "C" {
26 void __cdecl foo_cdecl() {}
27 void __stdcall foo_stdcall() {}
28 void __fastcall foo_fastcall() {}
29 void __vectorcall foo_vectorcall() {}
30 }