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