blob: f79ac35ffec13d830ce700dc62563bbe837f99af [file] [log] [blame]
Douglas Gregorc464ae82009-12-07 09:27:33 +00001/* 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 Kramer148299f2010-01-12 11:52:20 +00009// CHECK-CC1: {TypedText class}{HorizontalSpace }{Placeholder identifier}{SemiColon ;}
Douglas Gregor834389b2010-01-12 06:38:28 +000010// 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 Gregorc464ae82009-12-07 09:27:33 +000014
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 Gregor834389b2010-01-12 06:38:28 +000022// CHECK-CC3: {TypedText dynamic}{HorizontalSpace }{Placeholder property}
Douglas Gregorc464ae82009-12-07 09:27:33 +000023// CHECK-CC3: {TypedText end}
Douglas Gregor834389b2010-01-12 06:38:28 +000024// CHECK-CC3: {TypedText synthesize}{HorizontalSpace }{Placeholder property}