You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
338 B
20 lines
338 B
// To generate the corresponding EXE, run:
|
|
// clang-cl -MD -O2 -gdwarf -c coff-dwarf.cpp && lld-link -debug coff-dwarf.obj
|
|
|
|
extern "C" int puts(const char *str);
|
|
|
|
void __declspec(noinline) foo() {
|
|
puts("foo1");
|
|
puts("foo2");
|
|
}
|
|
|
|
// LLVM should inline this into main.
|
|
static void bar() {
|
|
foo();
|
|
}
|
|
|
|
int main() {
|
|
bar();
|
|
return 0;
|
|
}
|