aboutsummaryrefslogtreecommitdiff
path: root/test/Index/print-typekind.m
blob: 9eafd24fbe2fc5e20e92983ebf4c1d32812b5a29 (plain)
1
2
3
4
5
6
7
8
9
10
@interface Foo
@property (readonly) id x;
-(int) mymethod;
-(int) mymethod2:(id)x blah:(Class)y boo:(SEL)z;
@end

// RUN: c-index-test -test-print-typekind %s | FileCheck %s
// CHECK: ObjCPropertyDecl=x:2:25 typekind=ObjCId [canonical=ObjCObjectPointer]
// CHECK: ObjCInstanceMethodDecl=mymethod:3:8 typekind=Invalid [result=Int]
// CHECK: ObjCInstanceMethodDecl=mymethod2:blah:boo::4:8 typekind=Invalid [result=Int] [args= ObjCId ObjCClass ObjCSel]