26 lines · plain
1// REQUIRES: x86-registered-target2// RUN: rm -rf %t.cache3// RUN: rm -rf %t.h.pch4// 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-hash5// 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 -verify7 8// expected-no-diagnostics9 10#ifndef PCH_HEADER11#define PCH_HEADER12 13#include <Module/Module.h>14 15@interface Module(PCHCat)16-(id)PCH_meth;17@end18 19#else20 21void foo(Module *m) {22 [m PCH_meth];23}24 25#endif26