• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // To generate the corresponding EXE, run:
2 // clang-cl -MD -O2 -gdwarf -c coff-dwarf.cpp && lld-link -debug coff-dwarf.obj
3 
4 extern "C" int puts(const char *str);
5 
foo()6 void __declspec(noinline) foo() {
7   puts("foo1");
8   puts("foo2");
9 }
10 
11 // LLVM should inline this into main.
bar()12 static void bar() {
13   foo();
14 }
15 
main()16 int main() {
17   bar();
18   return 0;
19 }
20