summaryrefslogtreecommitdiffstats
path: root/llvm/test/LLVMC/C++/just-compile.cpp
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
commit3ba051a4f6cd19aaea44134ff0da048e23cdd7a0 (patch)
tree3c01f80255533393bbdbace32e30c5f1e03163b1 /llvm/test/LLVMC/C++/just-compile.cpp
parent7987c6188aa973378433262fe53de6e6e598cac9 (diff)
downloadbcm5719-llvm-3ba051a4f6cd19aaea44134ff0da048e23cdd7a0.tar.gz
bcm5719-llvm-3ba051a4f6cd19aaea44134ff0da048e23cdd7a0.zip
llvmc: Add a test for the -c flag.
llvm-svn: 116611
Diffstat (limited to 'llvm/test/LLVMC/C++/just-compile.cpp')
-rw-r--r--llvm/test/LLVMC/C++/just-compile.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/LLVMC/C++/just-compile.cpp b/llvm/test/LLVMC/C++/just-compile.cpp
new file mode 100644
index 00000000000..771c9822da6
--- /dev/null
+++ b/llvm/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';
+}
OpenPOWER on IntegriCloud