summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-28 23:39:20 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-28 23:39:20 +0000
commit5cb4760aedabb9539982fff40fb93f8430c2d5c8 (patch)
tree9205c860c9695d87585fa43fef23f5da881fc5a9
parent5929ef2ee7c94dba046007065a198003bfcadd40 (diff)
downloadbcm5719-llvm-5cb4760aedabb9539982fff40fb93f8430c2d5c8.tar.gz
bcm5719-llvm-5cb4760aedabb9539982fff40fb93f8430c2d5c8.zip
[PCH] Include a darwin-only PCH test on Cocoa.h.
llvm-svn: 151668
-rw-r--r--clang/test/PCH/cocoa.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/PCH/cocoa.m b/clang/test/PCH/cocoa.m
new file mode 100644
index 00000000000..0159b320149
--- /dev/null
+++ b/clang/test/PCH/cocoa.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
+
OpenPOWER on IntegriCloud