1// REQUIRES: x86-registered-target 2// RUN: rm -rf %t.cache 3// RUN: rm -rf %t.h.pch 4// RUN: c-index-test -write-pch %t.h.pch %s -target x86_64-apple-macosx10.7 -fobjc-arc -fmodules-cache-path=%t.cache -fmodules -F %S/../Modules/Inputs -Xclang -fdisable-module-hash 5// RUN: %clang -fsyntax-only %s -target x86_64-apple-macosx10.7 -include %t.h -fobjc-arc -fmodules-cache-path=%t.cache -fmodules -F %S/../Modules/Inputs \ 6// RUN: -Xclang -fdisable-module-hash -Xclang -detailed-preprocessing-record -Xclang -verify 7 8// expected-no-diagnostics 9 10#ifndef PCH_HEADER 11#define PCH_HEADER 12 13#include <Module/Module.h> 14 15@interface Module(PCHCat) 16-(id)PCH_meth; 17@end 18 19#else 20 21void foo(Module *m) { 22 [m PCH_meth]; 23} 24 25#endif 26