Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-symbolizer / pdb / Inputs / test.cpp
blob79bdcda5924c826aa6164b66def495f49cab1847
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
5 namespace NS {
6 struct Foo {
7 void bar() {}
8 };
11 void foo() {
14 static void private_symbol() {
17 int main() {
18 foo();
20 NS::Foo f;
21 f.bar();
22 private_symbol();
25 extern "C" {
26 void __cdecl foo_cdecl() {}
27 void __stdcall foo_stdcall() {}
28 void __fastcall foo_fastcall() {}
29 void __vectorcall foo_vectorcall() {}