blob: a1933567f7e93eed83b7d67033c29034f064d2a3 [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 Gregor5fb901d2010-09-20 23:11:55 +000019// CHECK-CC1: TypedefDecl:{TypedText BOOL} (50)
20// CHECK-CC1: macro definition:{TypedText bool} (51)
Douglas Gregor9dcf58a2010-09-20 21:11:48 +000021// 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)