Sign in
llvm
/
llvm-project
/
1c229c0472edfd59ce61ba063a93517df609ceb4
/
.
/
llvm
/
test
/
LLVMC
/
C++
/
just-compile.cpp
blob: 771c9822da69ec6f31121e0ebb88c5cf07f713dc [
file
]
// 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
<iostream>
int
main
()
{
std
::
cout
<<
"hello"
<<
'\n'
;
}