Home | History | Annotate | Download | only in Index
      1 // RUN: rm -rf %t.cache
      2 // 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
      3 // 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 \
      4 // RUN:      -Xclang -fdisable-module-hash -Xclang -detailed-preprocessing-record -Xclang -verify
      5 
      6 // expected-no-diagnostics
      7 
      8 #ifndef PCH_HEADER
      9 #define PCH_HEADER
     10 
     11 #include <Module/Module.h>
     12 
     13 @interface Module(PCHCat)
     14 -(id)PCH_meth;
     15 @end
     16 
     17 #else
     18 
     19 void foo(Module *m) {
     20   [m PCH_meth];
     21 }
     22 
     23 #endif
     24