1 // To generate the corresponding EXE/PDB, run: 2 // cl /Zi test.cpp 3 // To generate the PDB with column numbers, run: 4 // clang-cl /Zi -gcolumn-info test.cpp 5 6 namespace NS { 7 struct Foo { barNS::Foo8 void bar() {} 9 }; 10 } 11 foo()12void foo() { 13 } 14 private_symbol()15static void private_symbol() { 16 } 17 main()18int main() { 19 foo(); 20 21 NS::Foo f; 22 f.bar(); 23 private_symbol(); 24 } 25 26 extern "C" { foo_cdecl()27void __cdecl foo_cdecl() {} foo_stdcall()28void __stdcall foo_stdcall() {} foo_fastcall()29void __fastcall foo_fastcall() {} foo_vectorcall()30void __vectorcall foo_vectorcall() {} 31 } 32