Adrian Prantl | bc06858 | 2015-07-08 01:00:30 +0000 | [diff] [blame] | 1 | // REQUIRES: x86-registered-target |
Argyrios Kyrtzidis | 1c7455f | 2013-05-10 01:28:51 +0000 | [diff] [blame] | 2 | // RUN: rm -rf %t.cache |
| 3 | // 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 |
| 4 | // 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 \ |
| 5 | // RUN: -Xclang -fdisable-module-hash -Xclang -detailed-preprocessing-record -Xclang -verify |
| 6 | |
| 7 | // expected-no-diagnostics |
| 8 | |
| 9 | #ifndef PCH_HEADER |
| 10 | #define PCH_HEADER |
| 11 | |
| 12 | #include <Module/Module.h> |
| 13 | |
| 14 | @interface Module(PCHCat) |
| 15 | -(id)PCH_meth; |
| 16 | @end |
| 17 | |
| 18 | #else |
| 19 | |
| 20 | void foo(Module *m) { |
| 21 | [m PCH_meth]; |
| 22 | } |
| 23 | |
| 24 | #endif |