minix/external/bsd/llvm/dist/clang/test/Index/pch-with-module.m
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

23 lines
656 B
Objective-C

// RUN: rm -rf %t.cache
// 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
// 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 \
// RUN: -Xclang -fdisable-module-hash -Xclang -detailed-preprocessing-record -Xclang -verify
// expected-no-diagnostics
#ifndef PCH_HEADER
#define PCH_HEADER
#include <Module/Module.h>
@interface Module(PCHCat)
-(id)PCH_meth;
@end
#else
void foo(Module *m) {
[m PCH_meth];
}
#endif