blob: 82c3983e82b2b6340c7b0b2ecb37a17652add4a4 [file] [log] [blame]
Douglas Gregorbc7c5e42009-12-07 09:51:25 +00001/* The run lines are below, because this test is line- and
2 column-number sensitive. */
3@interface MyClass { }
4- (int)myMethod:(int)arg;
5@end
6
7@implementation MyClass
8- (int)myMethod:(int)arg {
9 @synchronized (@encode(MyClass)) { }
10}
11@end
12// RUN: c-index-test -code-completion-at=%s:9:4 %s | FileCheck -check-prefix=CHECK-CC1 %s
13// CHECK-CC1: {TypedText encode}{LeftParen (}{Placeholder type-name}{RightParen )}
14// CHECK-CC1: {TypedText protocol}{LeftParen (}{Placeholder protocol-name}{RightParen )}
15// CHECK-CC1: {TypedText selector}{LeftParen (}{Placeholder selector}{RightParen )}
16// CHECK-CC1: {TypedText synchronized}{Text }{LeftParen (}{Placeholder expression}{RightParen )}{LeftBrace {}{Placeholder statements}{RightBrace }}
17// CHECK-CC1: {TypedText throw}{Text }{Placeholder expression}{Text ;}
18// CHECK-CC1: {TypedText try}{LeftBrace {}{Placeholder statements}{RightBrace }}{Text @catch}{LeftParen (}{Placeholder parameter}{RightParen )}{LeftBrace {}{Placeholder statements}{RightBrace }}{Text @finally}{LeftBrace {}{Placeholder statements}{RightBrace }}
19// RUN: c-index-test -code-completion-at=%s:9:19 %s | FileCheck -check-prefix=CHECK-CC2 %s
20// CHECK-CC2: {TypedText encode}{LeftParen (}{Placeholder type-name}{RightParen )}
21// CHECK-CC2: {TypedText protocol}{LeftParen (}{Placeholder protocol-name}{RightParen )}
22// CHECK-CC2: {TypedText selector}{LeftParen (}{Placeholder selector}{RightParen )}
23