Douglas Gregor | dc84534 | 2010-05-25 05:58:43 +0000 | [diff] [blame] | 1 | /* 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]; |
Douglas Gregor | 200b292 | 2010-09-17 22:25:06 +0000 | [diff] [blame^] | 10 | blarg * blah = wibble; |
| 11 | A *a2; |
| 12 | z = [a2 method:1]; |
Douglas Gregor | dc84534 | 2010-05-25 05:58:43 +0000 | [diff] [blame] | 13 | } |
| 14 | @end |
| 15 | |
Douglas Gregor | d8e8a58 | 2010-05-25 21:41:55 +0000 | [diff] [blame] | 16 | // RUN: c-index-test -code-completion-at=%s:9:20 -Xclang -code-completion-patterns %s 2>%t | FileCheck -check-prefix=CHECK-CC1 %s |
Douglas Gregor | dc84534 | 2010-05-25 05:58:43 +0000 | [diff] [blame] | 17 | // RUN: not grep error %t |
| 18 | // CHECK-CC1: NotImplemented:{TypedText @encode}{LeftParen (}{Placeholder type-name}{RightParen )} |
Douglas Gregor | 4710e5b | 2010-05-28 00:49:12 +0000 | [diff] [blame] | 19 | // CHECK-CC1-NOT: NotImplemented:{TypedText _Bool} |
Douglas Gregor | dc84534 | 2010-05-25 05:58:43 +0000 | [diff] [blame] | 20 | // CHECK-CC1: VarDecl:{ResultType A *}{TypedText a} |
| 21 | // CHECK-CC1: NotImplemented:{TypedText sizeof}{LeftParen (}{Placeholder expression-or-type}{RightParen )} |
| 22 | |
Daniel Dunbar | 9536572 | 2010-09-03 15:45:00 +0000 | [diff] [blame] | 23 | // RUN: c-index-test -code-completion-at=%s:10:24 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC2 %s |
Douglas Gregor | 4710e5b | 2010-05-28 00:49:12 +0000 | [diff] [blame] | 24 | // CHECK-CC2: NotImplemented:{TypedText @encode}{LeftParen (}{Placeholder type-name}{RightParen )} |
| 25 | // CHECK-CC2: NotImplemented:{TypedText _Bool} |
| 26 | // CHECK-CC2: VarDecl:{ResultType A *}{TypedText a} |
| 27 | // CHECK-CC2: NotImplemented:{TypedText sizeof}{LeftParen (}{Placeholder expression-or-type}{RightParen )} |
Douglas Gregor | 200b292 | 2010-09-17 22:25:06 +0000 | [diff] [blame^] | 28 | // RUN: c-index-test -code-completion-at=%s:12:11 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC3 %s |
| 29 | // CHECK-CC3: ObjCInstanceMethodDecl:{ResultType void}{TypedText method:}{Placeholder (int)} (17) |