blob: d2c3f61cd8a06e7aba0232162ca0caa57b34f9ee [file] [log] [blame]
Douglas Gregor2ccccb32010-08-23 18:23:48 +00001// This test is line- and column-sensitive, so test commands are at the bottom.
2@protocol P
3- (int)method:(id)param1;
4@end
5
6@interface A <P>
7- (int)method:(id)param1;
8
9@property int prop1;
10@end
11
12@implementation A
13- (int)method:(id)param1 {
14 for(id x in param1) {
15 int y;
16 }
17}
18@end
19
20// RUN: c-index-test -code-completion-at=%s:7:19 %s | FileCheck -check-prefix=CHECK-CC1 %s
21// CHECK-CC1-NOT: NotImplemented:{TypedText extern} (30)
22// CHECK-CC1: NotImplemented:{TypedText param1} (30)
23// RUN: c-index-test -code-completion-at=%s:9:15 %s | FileCheck -check-prefix=CHECK-CC2 %s
24// RUN: c-index-test -code-completion-at=%s:14:10 %s | FileCheck -check-prefix=CHECK-CC2 %s
25// RUN: c-index-test -code-completion-at=%s:15:9 %s | FileCheck -check-prefix=CHECK-CC2 %s
26// CHECK-CC2: NotImplemented:{TypedText const} (30)
27// CHECK-CC2-NOT: int
28// CHECK-CC2: NotImplemented:{TypedText restrict} (30)
29// CHECK-CC2: NotImplemented:{TypedText volatile} (30)