summaryrefslogtreecommitdiff
path: root/test/Integration
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2014-11-24 09:15:30 +0000
committerDimitry Andric <dim@FreeBSD.org>2014-11-24 09:15:30 +0000
commit9f4dbff6669c8037f3b036bcf580d14f1a4f12a5 (patch)
tree47df2c12b57214af6c31e47404b005675b8b7ffc /test/Integration
parentf73d5f23a889b93d89ddef61ac0995df40286bb8 (diff)
Notes
Diffstat (limited to 'test/Integration')
-rw-r--r--test/Integration/carbon.c4
-rw-r--r--test/Integration/cocoa-pch.m7
-rw-r--r--test/Integration/cocoa.m5
3 files changed, 16 insertions, 0 deletions
diff --git a/test/Integration/carbon.c b/test/Integration/carbon.c
new file mode 100644
index 000000000000..0498116dd181
--- /dev/null
+++ b/test/Integration/carbon.c
@@ -0,0 +1,4 @@
+// RUN: %clang -fsyntax-only %s
+#ifdef __APPLE__
+#include <Carbon/Carbon.h>
+#endif
diff --git a/test/Integration/cocoa-pch.m b/test/Integration/cocoa-pch.m
new file mode 100644
index 000000000000..0159b3201492
--- /dev/null
+++ b/test/Integration/cocoa-pch.m
@@ -0,0 +1,7 @@
+// RUN: %clang -arch x86_64 -x objective-c-header %s -o %t.h.pch
+// RUN: touch %t.empty.m
+// RUN: %clang -arch x86_64 -fsyntax-only %t.empty.m -include %t.h -Xclang -ast-dump 2>&1 > /dev/null
+#ifdef __APPLE__
+#include <Cocoa/Cocoa.h>
+#endif
+
diff --git a/test/Integration/cocoa.m b/test/Integration/cocoa.m
new file mode 100644
index 000000000000..d814b3ee21bc
--- /dev/null
+++ b/test/Integration/cocoa.m
@@ -0,0 +1,5 @@
+// RUN: %clang -arch x86_64 %s -fsyntax-only -Xclang -print-stats
+#ifdef __APPLE__
+#include <Cocoa/Cocoa.h>
+#endif
+