summaryrefslogtreecommitdiff
path: root/clang/test/Index/print-typekind.m
blob: 9db192938f44c1a6730d069ffe7f7a968b6e060a (about) (plain)
1
2
3
4
5
6
7
8
9
10
@interface Foo
@property (readonly) id x;
-(int) mymethod;
-(int) mymethod2:(int)x blah:(float)y;
@end

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