[PCH] Include a darwin-only PCH test on Cocoa.h.

llvm-svn: 151668
This commit is contained in:
Argyrios Kyrtzidis 2012-02-28 23:39:20 +00:00
parent 5929ef2ee7
commit 5cb4760aed

7
clang/test/PCH/cocoa.m Normal file
View File

@ -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