771c9822da69ec6f31121e0ebb88c5cf07f713dc
[oota-llvm.git] / test / LLVMC / C++ / just-compile.cpp
1 // Test that the -c flag works.
2 // RUN: llvmc -c %s -o %t.o
3 // RUN: llvmc --linker=c++ %t.o -o %t
4 // RUN: %abs_tmp | grep hello
5 // XFAIL: vg
6 #include <iostream>
7
8 int main() {
9     std::cout << "hello" << '\n';
10 }