aboutsummaryrefslogtreecommitdiffstats
path: root/test/LLVMC/test_data
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-05-06 18:16:20 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-05-06 18:16:20 +0000
commite1a95f3fd70e3c8ac33ca28cc6817fa35d893488 (patch)
tree7dcef9a2f4eb66bf42e8dd7a694fb4bcf2794dad /test/LLVMC/test_data
parenta9d936936c83259ad6d3b004069c22ed2c908230 (diff)
downloadexternal_llvm-e1a95f3fd70e3c8ac33ca28cc6817fa35d893488.zip
external_llvm-e1a95f3fd70e3c8ac33ca28cc6817fa35d893488.tar.gz
external_llvm-e1a95f3fd70e3c8ac33ca28cc6817fa35d893488.tar.bz2
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
Diffstat (limited to 'test/LLVMC/test_data')
-rw-r--r--test/LLVMC/test_data/false.cpp17
-rw-r--r--test/LLVMC/test_data/false2.cpp6
-rw-r--r--test/LLVMC/test_data/together.c9
3 files changed, 32 insertions, 0 deletions
diff --git a/test/LLVMC/test_data/false.cpp b/test/LLVMC/test_data/false.cpp
new file mode 100644
index 0000000..d3a7102
--- /dev/null
+++ b/test/LLVMC/test_data/false.cpp
@@ -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
index 0000000..a020514
--- /dev/null
+++ b/test/LLVMC/test_data/false2.cpp
@@ -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
index 0000000..1b9b5f6
--- /dev/null
+++ b/test/LLVMC/test_data/together.c
@@ -0,0 +1,9 @@
+/*
+ * RUN: ignore
+ */
+
+#include <stdio.h>
+
+void test() {
+ printf("hello\n");
+}