blob: 57b6e47da5de4aa16c3b7ca38fe6b8c604b0c826 [file] [log] [blame]
Douglas Gregor9dcf58a2010-09-20 21:11:48 +00001typedef signed char BOOL;
2#define YES ((BOOL)1)
3#define NO ((BOOL)0)
4#define bool _Bool
Douglas Gregor521db402010-09-18 15:16:27 +00005@interface A
6- (int)method:(id)param1;
7
8@property int prop1;
9@end
10
11@implementation A
12- (int)method:(id)param1 {
13
14}
15@end
16
Douglas Gregor9dcf58a2010-09-20 21:11:48 +000017// RUN: c-index-test -code-completion-at=%s:13:2 %s | FileCheck -check-prefix=CHECK-CC1 %s
Douglas Gregor521db402010-09-18 15:16:27 +000018// CHECK-CC1: NotImplemented:{ResultType SEL}{TypedText _cmd} (80)
Douglas Gregor9dcf58a2010-09-20 21:11:48 +000019// CHECK-CC1: TypedefDecl:{TypedText BOOL} (60)
20// CHECK-CC1: macro definition:{TypedText bool} (61)
21// CHECK-CC1: macro definition:{TypedText NO} (65)
Douglas Gregor521db402010-09-18 15:16:27 +000022// CHECK-CC1: NotImplemented:{ResultType A *}{TypedText self} (8)
Douglas Gregor9dcf58a2010-09-20 21:11:48 +000023// CHECK-CC1: macro definition:{TypedText YES} (65)