Mercurial > hg > CbC > CbC_llvm
view lldb/test/Shell/Driver/Inputs/hello.cpp @ 227:21e6aa2e49ef
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 19 Jul 2021 06:57:16 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line source
// 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; } }