summaryrefslogtreecommitdiffstats
path: root/test/Index/index-refs.m
blob: b82345f9c685e922c285b851e148a36d342a49e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

@class Protocol;

@protocol Prot
@end

struct FooS {
  int x;
};

void foo() {
  Protocol *p = @protocol(Prot);
  @encode(struct FooS);
}

// RUN: c-index-test -index-file %s | FileCheck %s
// CHECK: [indexEntityReference]: kind: objc-protocol | name: Prot | {{.*}} | loc: 12:27
// CHECK: [indexEntityReference]: kind: struct | name: FooS | {{.*}} | loc: 13:18
OpenPOWER on IntegriCloud