Move test files around a bit - fixes the reported number of test cases.
authorMikhail Glushenkov <foldr@codedgers.com>
Tue, 6 May 2008 18:16:20 +0000 (18:16 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Tue, 6 May 2008 18:16:20 +0000 (18:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50761 91177308-0d34-0410-b5e6-96231b3b80d8

test/LLVMC/false.c
test/LLVMC/false.cpp [deleted file]
test/LLVMC/false2.cpp [deleted file]
test/LLVMC/test_data/false.cpp [new file with mode: 0644]
test/LLVMC/test_data/false2.cpp [new file with mode: 0644]
test/LLVMC/test_data/together.c [new file with mode: 0644]
test/LLVMC/together.c [deleted file]
test/LLVMC/together.cpp

index 69b400c59b0d7db24c5c2e8ddf0e6577975856bb..4aa365d89a32ffc0a0c748540582101208381c8e 100644 (file)
@@ -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>
diff --git a/test/LLVMC/false.cpp b/test/LLVMC/false.cpp
deleted file mode 100644 (file)
index d3a7102..0000000
+++ /dev/null
@@ -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");
-}
-
diff --git a/test/LLVMC/false2.cpp b/test/LLVMC/false2.cpp
deleted file mode 100644 (file)
index a020514..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// RUN: ignore
-#include <string>
-
-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 (file)
index 0000000..d3a7102
--- /dev/null
@@ -0,0 +1,17 @@
+/* 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");
+}
+
diff --git a/test/LLVMC/test_data/false2.cpp b/test/LLVMC/test_data/false2.cpp
new file mode 100644 (file)
index 0000000..a020514
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: ignore
+#include <string>
+
+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 (file)
index 0000000..1b9b5f6
--- /dev/null
@@ -0,0 +1,9 @@
+/*
+ * RUN: ignore
+ */
+
+#include <stdio.h>
+
+void test() {
+  printf("hello\n");
+}
diff --git a/test/LLVMC/together.c b/test/LLVMC/together.c
deleted file mode 100644 (file)
index 1b9b5f6..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- * RUN: ignore
- */
-
-#include <stdio.h>
-
-void test() {
-  printf("hello\n");
-}
index 97df1937524608ac79e5c64560efbb393ce345e2..09f8d86379cbfc5e9f6eafcf253c2f0a1a5303ca 100644 (file)
@@ -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();