Douglas Gregor | c464ae8 | 2009-12-07 09:27:33 +0000 | [diff] [blame] | 1 | /* Run lines are at the end, since line/column matter in this test. */ |
| 2 | @interface MyClass { } |
| 3 | @end |
| 4 | |
| 5 | @implementation MyClass |
| 6 | @end |
| 7 | |
| 8 | // RUN: c-index-test -code-completion-at=%s:2:2 %s | FileCheck -check-prefix=CHECK-CC1 %s |
Benjamin Kramer | 148299f | 2010-01-12 11:52:20 +0000 | [diff] [blame^] | 9 | // CHECK-CC1: {TypedText class}{HorizontalSpace }{Placeholder identifier}{SemiColon ;} |
Douglas Gregor | 834389b | 2010-01-12 06:38:28 +0000 | [diff] [blame] | 10 | // CHECK-CC1: {TypedText compatibility_alias}{HorizontalSpace }{Placeholder alias}{HorizontalSpace }{Placeholder class} |
| 11 | // CHECK-CC1: {TypedText implementation}{HorizontalSpace }{Placeholder class} |
| 12 | // CHECK-CC1: {TypedText interface}{HorizontalSpace }{Placeholder class} |
| 13 | // CHECK-CC1: {TypedText protocol}{HorizontalSpace }{Placeholder protocol} |
Douglas Gregor | c464ae8 | 2009-12-07 09:27:33 +0000 | [diff] [blame] | 14 | |
| 15 | // RUN: c-index-test -code-completion-at=%s:3:2 %s | FileCheck -check-prefix=CHECK-CC2 %s |
| 16 | // CHECK-CC2: {TypedText end} |
| 17 | // CHECK-CC2: {TypedText optional} |
| 18 | // CHECK-CC2: {TypedText property} |
| 19 | // CHECK-CC2: {TypedText required} |
| 20 | |
| 21 | // RUN: c-index-test -code-completion-at=%s:6:2 %s | FileCheck -check-prefix=CHECK-CC3 %s |
Douglas Gregor | 834389b | 2010-01-12 06:38:28 +0000 | [diff] [blame] | 22 | // CHECK-CC3: {TypedText dynamic}{HorizontalSpace }{Placeholder property} |
Douglas Gregor | c464ae8 | 2009-12-07 09:27:33 +0000 | [diff] [blame] | 23 | // CHECK-CC3: {TypedText end} |
Douglas Gregor | 834389b | 2010-01-12 06:38:28 +0000 | [diff] [blame] | 24 | // CHECK-CC3: {TypedText synthesize}{HorizontalSpace }{Placeholder property} |