Files
clang-p2996/lldb/test/Shell/Driver/Inputs/hello.cpp
Jonas Devlieghere 87aa9c9e4d Re-land "[test] Split LLDB tests into API, Shell & Unit"
The original patch got reverted because it broke `check-lldb` on a clean
build. This fixes that.

llvm-svn: 374201
2019-10-09 19:22:02 +00:00

12 lines
328 B
C++

// The build.py script always runs the compiler in C++ mode, regardless of the
// file extension. This results in mangled names presented to the linker which
// in turn cannot find the printf symbol.
extern "C" {
int printf(const char *format, ...);
int main(int argc, char **argv) {
printf("Hello World\n");
return 0;
}
}