[llvm-commits] [llvm] r50734 - in /llvm/trunk/test/LLVMC: ./ dg.exp hello.c together.cpp together1.c
Mikhail Glushenkov
foldr at codedgers.com
Tue May 6 10:24:55 PDT 2008
Author: foldr
Date: Tue May 6 12:24:54 2008
New Revision: 50734
URL: http://llvm.org/viewvc/llvm-project?rev=50734&view=rev
Log:
First small tests for llvmc2.
Added:
llvm/trunk/test/LLVMC/
llvm/trunk/test/LLVMC/dg.exp
llvm/trunk/test/LLVMC/hello.c
llvm/trunk/test/LLVMC/together.cpp
llvm/trunk/test/LLVMC/together1.c
Added: llvm/trunk/test/LLVMC/dg.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/dg.exp?rev=50734&view=auto
==============================================================================
--- llvm/trunk/test/LLVMC/dg.exp (added)
+++ llvm/trunk/test/LLVMC/dg.exp Tue May 6 12:24:54 2008
@@ -0,0 +1,3 @@
+load_lib llvm.exp
+
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{c,cpp}]]
Added: llvm/trunk/test/LLVMC/hello.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/hello.c?rev=50734&view=auto
==============================================================================
--- llvm/trunk/test/LLVMC/hello.c (added)
+++ llvm/trunk/test/LLVMC/hello.c Tue May 6 12:24:54 2008
@@ -0,0 +1,12 @@
+/*
+ * Check that we can compile helloworld
+ * RUN: llvmc2 %s -o %t
+ * RUN: ./%t | grep hello
+ */
+
+#include <stdio.h>
+
+int main() {
+ printf("hello\n");
+ return 0;
+}
Added: llvm/trunk/test/LLVMC/together.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/together.cpp?rev=50734&view=auto
==============================================================================
--- llvm/trunk/test/LLVMC/together.cpp (added)
+++ llvm/trunk/test/LLVMC/together.cpp Tue May 6 12:24:54 2008
@@ -0,0 +1,10 @@
+// Check that we can compile files of different types together.
+// TOFIX: compiling files with same names should work.
+// RUN: llvmc2 %s %p/together1.c -o %t
+// RUN: ./%t | grep hello
+
+extern "C" void test();
+
+int main() {
+ test();
+}
Added: llvm/trunk/test/LLVMC/together1.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/together1.c?rev=50734&view=auto
==============================================================================
--- llvm/trunk/test/LLVMC/together1.c (added)
+++ llvm/trunk/test/LLVMC/together1.c Tue May 6 12:24:54 2008
@@ -0,0 +1,9 @@
+/*
+ * RUN: ignore
+ */
+
+#include <stdio.h>
+
+void test() {
+ printf("hello\n");
+}
More information about the llvm-commits
mailing list