Allow resolving headers from a PCH even after headers+PCH were moved to another path.
[clang.git] / test / Index / complete-property-getset.m
blobf4424ced081296f762bea52e204c7913746ea237
1 // Note: the run lines follow their respective tests, since line/column
2 // matter in this test.
4 @interface Super { }
5 - (int)getter1;
6 + (int)getter2_not_instance;
7 - (int)getter2_not:(int)x;
8 - (int)getter3;
9 - (void)setter1:(int)x;
10 + (void)setter2_not_inst:(int)x;
11 + (void)setter2_many_args:(int)x second:(int)y;
12 - (void)setter3:(int)y;
13 @property (getter = getter1, setter = setter1:) int blah;
14 @end
16 @interface Sub : Super { }
17 - (int)getter4;
18 - (void)setter4:(int)x;
19 @property (getter = getter4, setter = setter1:) int blarg;
20 @end
22 // RUN: c-index-test -code-completion-at=%s:13:21 %s | FileCheck -check-prefix=CHECK-CC1 %s
23 // CHECK-CC1: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter1}
24 // CHECK-CC1-NOT: getter2
25 // CHECK-CC1: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter3}
26 // RUN: c-index-test -code-completion-at=%s:13:39 %s | FileCheck -check-prefix=CHECK-CC2 %s
27 // CHECK-CC2: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter2_not:}
28 // CHECK-CC2: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter1:}
29 // CHECK-CC2-NOT: setter2
30 // CHECK-CC2: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter3:}
31 // RUN: c-index-test -code-completion-at=%s:19:21 %s | FileCheck -check-prefix=CHECK-CC3 %s
32 // CHECK-CC3: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter1}
33 // CHECK-CC3-NOT: getter2
34 // CHECK-CC3: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter3}
35 // CHECK-CC3: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter4}
36 // RUN: c-index-test -code-completion-at=%s:19:39 %s | FileCheck -check-prefix=CHECK-CC4 %s
37 // CHECK-CC4: ObjCInstanceMethodDecl:{ResultType int}{TypedText getter2_not:}{Informative (int)x}
38 // CHECK-CC4: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter1:}{Informative (int)x}
39 // CHECK-CC4-NOT: setter2
40 // CHECK-CC4: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter3:}{Informative (int)y}
41 // CHECK-CC4: ObjCInstanceMethodDecl:{ResultType void}{TypedText setter4:}{Informative (int)x}