[llvm-commits] [llvm] r50761 - in /llvm/trunk/test/LLVMC: false.c false.cpp false2.cpp test_data/ test_data/false.cpp test_data/false2.cpp test_data/together.c together.c together.cpp

Mikhail Glushenkov foldr at codedgers.com
Tue May 6 11:16:20 PDT 2008


Author: foldr
Date: Tue May  6 13:16:20 2008
New Revision: 50761

URL: http://llvm.org/viewvc/llvm-project?rev=50761&view=rev
Log:
Move test files around a bit - fixes the reported number of test cases.

Added:
    llvm/trunk/test/LLVMC/test_data/
    llvm/trunk/test/LLVMC/test_data/false.cpp
      - copied, changed from r50760, llvm/trunk/test/LLVMC/false.cpp
    llvm/trunk/test/LLVMC/test_data/false2.cpp
      - copied, changed from r50760, llvm/trunk/test/LLVMC/false2.cpp
    llvm/trunk/test/LLVMC/test_data/together.c
      - copied, changed from r50760, llvm/trunk/test/LLVMC/together.c
Removed:
    llvm/trunk/test/LLVMC/false.cpp
    llvm/trunk/test/LLVMC/false2.cpp
    llvm/trunk/test/LLVMC/together.c
Modified:
    llvm/trunk/test/LLVMC/false.c
    llvm/trunk/test/LLVMC/together.cpp

Modified: llvm/trunk/test/LLVMC/false.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/false.c?rev=50761&r1=50760&r2=50761&view=diff

==============================================================================
--- llvm/trunk/test/LLVMC/false.c (original)
+++ llvm/trunk/test/LLVMC/false.c Tue May  6 13:16:20 2008
@@ -1,5 +1,5 @@
 // Test that we can compile .c files as C++ and vice versa
-// RUN: llvmc2 -x c++ %s -x c %p/false.cpp -x lisp -x whatnot -x none %p/false2.cpp -o %t
+// RUN: llvmc2 -x c++ %s -x c %p/test_data/false.cpp -x lisp -x whatnot -x none %p/test_data/false2.cpp -o %t
 // RUN: ./%t | grep hello
 
 #include <iostream>

Removed: llvm/trunk/test/LLVMC/false.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/false.cpp?rev=50760&view=auto

==============================================================================
--- llvm/trunk/test/LLVMC/false.cpp (original)
+++ llvm/trunk/test/LLVMC/false.cpp (removed)
@@ -1,17 +0,0 @@
-/* RUN: ignore */
-#include <stdio.h>
-
-/* Make this invalid C++ */
-typedef struct {
-    int i;
-    char c;
-} a;
-
-static a b = { .i = 65, .c = 'r'};
-
-void test() {
-    b.i = 9;
-    fflush(stdout);
-    printf("el");
-}
-

Removed: llvm/trunk/test/LLVMC/false2.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/false2.cpp?rev=50760&view=auto

==============================================================================
--- llvm/trunk/test/LLVMC/false2.cpp (original)
+++ llvm/trunk/test/LLVMC/false2.cpp (removed)
@@ -1,6 +0,0 @@
-// RUN: ignore
-#include <string>
-
-std::string test2() {
-    return "lo";
-}

Copied: llvm/trunk/test/LLVMC/test_data/false.cpp (from r50760, llvm/trunk/test/LLVMC/false.cpp)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/test_data/false.cpp?p2=llvm/trunk/test/LLVMC/test_data/false.cpp&p1=llvm/trunk/test/LLVMC/false.cpp&r1=50760&r2=50761&rev=50761&view=diff

==============================================================================
    (empty)

Copied: llvm/trunk/test/LLVMC/test_data/false2.cpp (from r50760, llvm/trunk/test/LLVMC/false2.cpp)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/test_data/false2.cpp?p2=llvm/trunk/test/LLVMC/test_data/false2.cpp&p1=llvm/trunk/test/LLVMC/false2.cpp&r1=50760&r2=50761&rev=50761&view=diff

==============================================================================
    (empty)

Copied: llvm/trunk/test/LLVMC/test_data/together.c (from r50760, llvm/trunk/test/LLVMC/together.c)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/test_data/together.c?p2=llvm/trunk/test/LLVMC/test_data/together.c&p1=llvm/trunk/test/LLVMC/together.c&r1=50760&r2=50761&rev=50761&view=diff

==============================================================================
    (empty)

Removed: llvm/trunk/test/LLVMC/together.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/together.c?rev=50760&view=auto

==============================================================================
--- llvm/trunk/test/LLVMC/together.c (original)
+++ llvm/trunk/test/LLVMC/together.c (removed)
@@ -1,9 +0,0 @@
-/*
- * RUN: ignore
- */
-
-#include <stdio.h>
-
-void test() {
-  printf("hello\n");
-}

Modified: llvm/trunk/test/LLVMC/together.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/together.cpp?rev=50761&r1=50760&r2=50761&view=diff

==============================================================================
--- llvm/trunk/test/LLVMC/together.cpp (original)
+++ llvm/trunk/test/LLVMC/together.cpp Tue May  6 13:16:20 2008
@@ -1,5 +1,5 @@
 // Check that we can compile files of different types together.
-// RUN: llvmc2 %s %p/together.c -o %t
+// RUN: llvmc2 %s %p/test_data/together.c -o %t
 // RUN: ./%t | grep hello
 
 extern "C" void test();





More information about the llvm-commits mailing list