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 main()8 int main() { 9 std::cout << "hello" << '\n'; 10 } 11