From: Mikhail Glushenkov Date: Tue, 6 May 2008 18:16:20 +0000 (+0000) Subject: Move test files around a bit - fixes the reported number of test cases. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2e9e0c2951e8f9f167f28efb673f4045977d6bb0;p=oota-llvm.git Move test files around a bit - fixes the reported number of test cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50761 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/LLVMC/false.c b/test/LLVMC/false.c index 69b400c59b0..4aa365d89a3 100644 --- a/test/LLVMC/false.c +++ b/test/LLVMC/false.c @@ -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 diff --git a/test/LLVMC/false.cpp b/test/LLVMC/false.cpp deleted file mode 100644 index d3a7102f8cc..00000000000 --- a/test/LLVMC/false.cpp +++ /dev/null @@ -1,17 +0,0 @@ -/* RUN: ignore */ -#include - -/* 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"); -} - diff --git a/test/LLVMC/false2.cpp b/test/LLVMC/false2.cpp deleted file mode 100644 index a02051415dd..00000000000 --- a/test/LLVMC/false2.cpp +++ /dev/null @@ -1,6 +0,0 @@ -// RUN: ignore -#include - -std::string test2() { - return "lo"; -} diff --git a/test/LLVMC/test_data/false.cpp b/test/LLVMC/test_data/false.cpp new file mode 100644 index 00000000000..d3a7102f8cc --- /dev/null +++ b/test/LLVMC/test_data/false.cpp @@ -0,0 +1,17 @@ +/* RUN: ignore */ +#include + +/* 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"); +} + diff --git a/test/LLVMC/test_data/false2.cpp b/test/LLVMC/test_data/false2.cpp new file mode 100644 index 00000000000..a02051415dd --- /dev/null +++ b/test/LLVMC/test_data/false2.cpp @@ -0,0 +1,6 @@ +// RUN: ignore +#include + +std::string test2() { + return "lo"; +} diff --git a/test/LLVMC/test_data/together.c b/test/LLVMC/test_data/together.c new file mode 100644 index 00000000000..1b9b5f67fba --- /dev/null +++ b/test/LLVMC/test_data/together.c @@ -0,0 +1,9 @@ +/* + * RUN: ignore + */ + +#include + +void test() { + printf("hello\n"); +} diff --git a/test/LLVMC/together.c b/test/LLVMC/together.c deleted file mode 100644 index 1b9b5f67fba..00000000000 --- a/test/LLVMC/together.c +++ /dev/null @@ -1,9 +0,0 @@ -/* - * RUN: ignore - */ - -#include - -void test() { - printf("hello\n"); -} diff --git a/test/LLVMC/together.cpp b/test/LLVMC/together.cpp index 97df1937524..09f8d86379c 100644 --- a/test/LLVMC/together.cpp +++ b/test/LLVMC/together.cpp @@ -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();