| 1 |
@import hidden_redecls; |
| 2 |
|
| 3 |
@interface Foo (Top) |
| 4 |
- (void)top_method; |
| 5 |
@end |
| 6 |
|
| 7 |
// p1_method in protocol P1 is hidden since module_redecls.sub hasn't been |
| 8 |
// imported yet. Check it is still indexed. |
| 9 |
|
| 10 |
// RUN: rm -rf %t |
| 11 |
// RUN: c-index-test -index-file-full %s -isystem %S/Inputs -fmodules -fmodules-cache-path=%t -target x86_64-apple-macosx10.7 | FileCheck %s |
| 12 |
// CHECK: [indexDeclaration]: kind: objc-instance-method | name: p1_method | {{.*}} | loc: {{.*}}hidden-redecls-sub.h:2:9 | {{.*}} | isRedecl: 0 |
| 13 |
// CHECK: [indexDeclaration]: kind: objc-instance-method | name: p1_method | {{.*}} | loc: {{.*}}hidden-redecls-sub.h:3:9 | {{.*}} | isRedecl: 1 |