From cbb70ce070d220642b038ea101d9c0f9fbf860d6 Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 20 Feb 2011 12:57:14 +0000 Subject: Vendor import of llvm trunk r126079: http://llvm.org/svn/llvm-project/llvm/trunk@126079 --- test/LLVMC/C++/just-compile.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/LLVMC/C++/just-compile.cpp (limited to '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 0000000..771c982 --- /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'; +} -- cgit v1.1