brintos

brintos / llvm-project-archived public Read only

0
0
Text · 682 B · 457712b Raw
33 lines · plain
1 2@class Protocol;3 4@protocol Prot5@end6 7struct FooS {8  int x;9};10 11void foo() {12  Protocol *p = @protocol(Prot);13  @encode(struct FooS);14}15 16@interface I17+(void)clsMeth;18@end19 20void foo2() {21  [I clsMeth];22}23 24@protocol ForwardProt;25 26// RUN: c-index-test -index-file %s | FileCheck %s27// CHECK: [indexEntityReference]: kind: objc-protocol | name: Prot | {{.*}} | loc: 12:2728// CHECK: [indexEntityReference]: kind: struct | name: FooS | {{.*}} | loc: 13:1829// CHECK: [indexEntityReference]: kind: objc-class | name: I | {{.*}} | loc: 21:430 31// CHECK: [indexDeclaration]: kind: objc-protocol | name: ForwardProt | {{.*}} | loc: 24:1132// CHECK-NEXT: <ObjCContainerInfo>: kind: forward-ref33