blob: f25013b882f6e914dc6978dbd9e55a155e1d9d5a [file] [log] [blame]
Argyrios Kyrtzidise99b0842012-05-25 20:05:57 +00001
2@class Protocol;
3
4@protocol Prot
5@end
6
7struct FooS {
8 int x;
9};
10
11void foo() {
12 Protocol *p = @protocol(Prot);
13 @encode(struct FooS);
14}
15
Argyrios Kyrtzidisfe6a0122013-05-06 19:08:57 +000016@interface I
17+(void)clsMeth;
18@end
19
20void foo2() {
21 [I clsMeth];
22}
23
Argyrios Kyrtzidise99b0842012-05-25 20:05:57 +000024// RUN: c-index-test -index-file %s | FileCheck %s
25// CHECK: [indexEntityReference]: kind: objc-protocol | name: Prot | {{.*}} | loc: 12:27
26// CHECK: [indexEntityReference]: kind: struct | name: FooS | {{.*}} | loc: 13:18
Argyrios Kyrtzidisfe6a0122013-05-06 19:08:57 +000027// CHECK: [indexEntityReference]: kind: objc-class | name: I | {{.*}} | loc: 21:4