[llvm-commits] [llvm] r116611 - /llvm/trunk/test/LLVMC/C++/just-compile.cpp

Mikhail Glushenkov foldr at codedgers.com
Fri Oct 15 12:30:49 PDT 2010


Author: foldr
Date: Fri Oct 15 14:30:49 2010
New Revision: 116611

URL: http://llvm.org/viewvc/llvm-project?rev=116611&view=rev
Log:
llvmc: Add a test for the -c flag.

Added:
    llvm/trunk/test/LLVMC/C++/just-compile.cpp

Added: llvm/trunk/test/LLVMC/C++/just-compile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/C%2B%2B/just-compile.cpp?rev=116611&view=auto
==============================================================================
--- llvm/trunk/test/LLVMC/C++/just-compile.cpp (added)
+++ llvm/trunk/test/LLVMC/C++/just-compile.cpp Fri Oct 15 14:30:49 2010
@@ -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';
+}





More information about the llvm-commits mailing list