[cfe-commits] r151668 - /cfe/trunk/test/PCH/cocoa.m

Argyrios Kyrtzidis akyrtzi at gmail.com
Tue Feb 28 15:39:21 PST 2012


Author: akirtzidis
Date: Tue Feb 28 17:39:20 2012
New Revision: 151668

URL: http://llvm.org/viewvc/llvm-project?rev=151668&view=rev
Log:
[PCH] Include a darwin-only PCH test on Cocoa.h.

Added:
    cfe/trunk/test/PCH/cocoa.m

Added: cfe/trunk/test/PCH/cocoa.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/cocoa.m?rev=151668&view=auto
==============================================================================
--- cfe/trunk/test/PCH/cocoa.m (added)
+++ cfe/trunk/test/PCH/cocoa.m Tue Feb 28 17:39:20 2012
@@ -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
+





More information about the cfe-commits mailing list