diff --git a/test/LLVMC/C++/just-compile.cpp b/test/LLVMC/C++/just-compile.cpp new file mode 100644 index 00000000000..771c9822da6 --- /dev/null +++ b/test/LLVMC/C++/just-compile.cpp @@ -0,0 +1,10 @@ +// Test that the -c flag works. +// RUN: llvmc -c %s -o %t.o +// RUN: llvmc --linker=c++ %t.o -o %t +// RUN: %abs_tmp | grep hello +// XFAIL: vg +#include + +int main() { + std::cout << "hello" << '\n'; +}