summaryrefslogtreecommitdiff
path: root/clang/test/ARCMT/with space
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/ARCMT/with space')
-rw-r--r--clang/test/ARCMT/with space/test.h15
-rw-r--r--clang/test/ARCMT/with space/test.h.result13
-rw-r--r--clang/test/ARCMT/with space/test1.m.in6
-rw-r--r--clang/test/ARCMT/with space/test1.m.in.result5
-rw-r--r--clang/test/ARCMT/with space/test2.m.in6
-rw-r--r--clang/test/ARCMT/with space/test2.m.in.result5
6 files changed, 50 insertions, 0 deletions
diff --git a/clang/test/ARCMT/with space/test.h b/clang/test/ARCMT/with space/test.h
new file mode 100644
index 0000000..756295f
--- /dev/null
+++ b/clang/test/ARCMT/with space/test.h
@@ -0,0 +1,15 @@
+@protocol NSObject
+- (oneway void)release;
+@end
+
+#ifdef PART1
+static inline void part1(id p) {
+ [p release];
+}
+#endif
+
+#ifdef PART2
+static inline void part2(id p) {
+ [p release];
+}
+#endif
diff --git a/clang/test/ARCMT/with space/test.h.result b/clang/test/ARCMT/with space/test.h.result
new file mode 100644
index 0000000..0638a33
--- /dev/null
+++ b/clang/test/ARCMT/with space/test.h.result
@@ -0,0 +1,13 @@
+@protocol NSObject
+- (oneway void)release;
+@end
+
+#ifdef PART1
+static inline void part1(id p) {
+}
+#endif
+
+#ifdef PART2
+static inline void part2(id p) {
+}
+#endif
diff --git a/clang/test/ARCMT/with space/test1.m.in b/clang/test/ARCMT/with space/test1.m.in
new file mode 100644
index 0000000..8416a88
--- /dev/null
+++ b/clang/test/ARCMT/with space/test1.m.in
@@ -0,0 +1,6 @@
+#define PART1
+#include "test.h"
+
+void test1(id p) {
+ [p release];
+}
diff --git a/clang/test/ARCMT/with space/test1.m.in.result b/clang/test/ARCMT/with space/test1.m.in.result
new file mode 100644
index 0000000..f351fe6
--- /dev/null
+++ b/clang/test/ARCMT/with space/test1.m.in.result
@@ -0,0 +1,5 @@
+#define PART1
+#include "test.h"
+
+void test1(id p) {
+}
diff --git a/clang/test/ARCMT/with space/test2.m.in b/clang/test/ARCMT/with space/test2.m.in
new file mode 100644
index 0000000..99f87b0
--- /dev/null
+++ b/clang/test/ARCMT/with space/test2.m.in
@@ -0,0 +1,6 @@
+#define PART2
+#include "test.h"
+
+void test2(id p) {
+ [p release];
+}
diff --git a/clang/test/ARCMT/with space/test2.m.in.result b/clang/test/ARCMT/with space/test2.m.in.result
new file mode 100644
index 0000000..f8e918c
--- /dev/null
+++ b/clang/test/ARCMT/with space/test2.m.in.result
@@ -0,0 +1,5 @@
+#define PART2
+#include "test.h"
+
+void test2(id p) {
+}