blob: e03834ee15b7413eb73a39fb28467019021b79c2 [file] [log] [blame]
Douglas Gregordc845342010-05-25 05:58:43 +00001/* Run lines are at the end, since line/column matter in this test. */
2
3@interface A
4- (void)method:(int)x;
5@end
6
7@implementation A
8- (void)method:(int)x {
9 A *a = [A method:1];
10 blarg * blah = wibble
11}
12@end
13
Douglas Gregord8e8a582010-05-25 21:41:55 +000014// RUN: c-index-test -code-completion-at=%s:9:20 -Xclang -code-completion-patterns %s 2>%t | FileCheck -check-prefix=CHECK-CC1 %s
Douglas Gregordc845342010-05-25 05:58:43 +000015// RUN: not grep error %t
16// CHECK-CC1: NotImplemented:{TypedText @encode}{LeftParen (}{Placeholder type-name}{RightParen )}
Douglas Gregor4710e5b2010-05-28 00:49:12 +000017// CHECK-CC1-NOT: NotImplemented:{TypedText _Bool}
Douglas Gregordc845342010-05-25 05:58:43 +000018// CHECK-CC1: VarDecl:{ResultType A *}{TypedText a}
19// CHECK-CC1: NotImplemented:{TypedText sizeof}{LeftParen (}{Placeholder expression-or-type}{RightParen )}
20
Douglas Gregor4710e5b2010-05-28 00:49:12 +000021// RUN: c-index-test -code-completion-at=%s:10:24 -Xclang -code-completion-patterns %s 2>%t | FileCheck -check-prefix=CHECK-CC2 %s
22// CHECK-CC2: NotImplemented:{TypedText @encode}{LeftParen (}{Placeholder type-name}{RightParen )}
23// CHECK-CC2: NotImplemented:{TypedText _Bool}
24// CHECK-CC2: VarDecl:{ResultType A *}{TypedText a}
25// CHECK-CC2: NotImplemented:{TypedText sizeof}{LeftParen (}{Placeholder expression-or-type}{RightParen )}