summaryrefslogtreecommitdiff
path: root/test/LLVMC/C++
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-10-15 19:30:49 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-10-15 19:30:49 +0000
commit900152bf88c2d6e55010050ba04c379021b8ed0b (patch)
tree3c7050c054b851cb7fcdfc6d894a3f2b213ce23f /test/LLVMC/C++
parent84760885e1cb9f8a63243500338907e516b4c9cb (diff)
downloadllvm-900152bf88c2d6e55010050ba04c379021b8ed0b.tar.gz
llvm-900152bf88c2d6e55010050ba04c379021b8ed0b.tar.bz2
llvm-900152bf88c2d6e55010050ba04c379021b8ed0b.tar.xz
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
Diffstat (limited to 'test/LLVMC/C++')
-rw-r--r--test/LLVMC/C++/just-compile.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/LLVMC/C++/just-compile.cpp b/test/LLVMC/C++/just-compile.cpp
new file mode 100644
index 0000000000..771c9822da
--- /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 <iostream>
+
+int main() {
+ std::cout << "hello" << '\n';
+}