2010-09-21 05:11:48 +08:00
|
|
|
typedef signed char BOOL;
|
|
|
|
#define YES ((BOOL)1)
|
|
|
|
#define NO ((BOOL)0)
|
|
|
|
#define bool _Bool
|
2010-09-18 23:16:27 +08:00
|
|
|
@interface A
|
|
|
|
- (int)method:(id)param1;
|
|
|
|
|
|
|
|
@property int prop1;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation A
|
|
|
|
- (int)method:(id)param1 {
|
|
|
|
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
2010-09-21 05:11:48 +08:00
|
|
|
// RUN: c-index-test -code-completion-at=%s:13:2 %s | FileCheck -check-prefix=CHECK-CC1 %s
|
2010-09-18 23:16:27 +08:00
|
|
|
// CHECK-CC1: NotImplemented:{ResultType SEL}{TypedText _cmd} (80)
|
2010-09-21 07:11:55 +08:00
|
|
|
// CHECK-CC1: TypedefDecl:{TypedText BOOL} (50)
|
|
|
|
// CHECK-CC1: macro definition:{TypedText bool} (51)
|
2010-09-21 05:11:48 +08:00
|
|
|
// CHECK-CC1: macro definition:{TypedText NO} (65)
|
2010-09-18 23:16:27 +08:00
|
|
|
// CHECK-CC1: NotImplemented:{ResultType A *}{TypedText self} (8)
|
2010-09-21 05:11:48 +08:00
|
|
|
// CHECK-CC1: macro definition:{TypedText YES} (65)
|