From 900152bf88c2d6e55010050ba04c379021b8ed0b Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Fri, 15 Oct 2010 19:30:49 +0000 Subject: [PATCH] llvmc: Add a test for the -c flag. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116611 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/LLVMC/C++/just-compile.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/LLVMC/C++/just-compile.cpp 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'; +}