annotate clang/test/Index/pch-with-module.m @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: x86-registered-target
anatofuz
parents:
diff changeset
2 // RUN: rm -rf %t.cache
anatofuz
parents:
diff changeset
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
anatofuz
parents:
diff changeset
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 \
anatofuz
parents:
diff changeset
5 // RUN: -Xclang -fdisable-module-hash -Xclang -detailed-preprocessing-record -Xclang -verify
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 // expected-no-diagnostics
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 #ifndef PCH_HEADER
anatofuz
parents:
diff changeset
10 #define PCH_HEADER
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 #include <Module/Module.h>
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 @interface Module(PCHCat)
anatofuz
parents:
diff changeset
15 -(id)PCH_meth;
anatofuz
parents:
diff changeset
16 @end
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 #else
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 void foo(Module *m) {
anatofuz
parents:
diff changeset
21 [m PCH_meth];
anatofuz
parents:
diff changeset
22 }
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 #endif