2016-02-15 06:38:38 +08:00
|
|
|
// RUN: c-index-test core -print-source-symbols -- %s -target x86_64-apple-macosx10.7 | FileCheck %s
|
2016-02-14 14:39:11 +08:00
|
|
|
|
|
|
|
@interface Base
|
2016-02-15 06:30:14 +08:00
|
|
|
// CHECK: [[@LINE-1]]:12 | objc-class/ObjC | Base | c:objc(cs)Base | _OBJC_CLASS_$_Base | Decl | rel: 0
|
2016-02-14 14:39:11 +08:00
|
|
|
-(void)meth;
|
2016-02-29 15:55:51 +08:00
|
|
|
// CHECK: [[@LINE-1]]:1 | objc-instance-method/ObjC | meth | c:objc(cs)Base(im)meth | -[Base meth] | Decl,Dyn,RelChild | rel: 1
|
2016-02-14 14:39:11 +08:00
|
|
|
// CHECK-NEXT: RelChild | Base | c:objc(cs)Base
|
|
|
|
@end
|
2016-02-29 15:55:55 +08:00
|
|
|
|
|
|
|
void foo();
|
|
|
|
// CHECK: [[@LINE+1]]:6 | function/C | goo | c:@F@goo | _goo | Def | rel: 0
|
|
|
|
void goo(Base *b) {
|
2016-02-29 15:56:00 +08:00
|
|
|
// CHECK: [[@LINE+2]]:3 | function/C | foo | c:@F@foo | _foo | Ref,Call,RelCall | rel: 1
|
|
|
|
// CHECK-NEXT: RelCall | goo | c:@F@goo
|
2016-02-29 15:55:55 +08:00
|
|
|
foo();
|
2016-02-29 15:56:00 +08:00
|
|
|
// CHECK: [[@LINE+3]]:6 | objc-instance-method/ObjC | meth | c:objc(cs)Base(im)meth | -[Base meth] | Ref,Call,Dyn,RelRec,RelCall | rel: 2
|
|
|
|
// CHECK-NEXT: RelCall | goo | c:@F@goo
|
2016-02-29 15:55:55 +08:00
|
|
|
// CHECK-NEXT: RelRec | Base | c:objc(cs)Base
|
|
|
|
[b meth];
|
|
|
|
}
|