blob: 4296cc9a8c29b12cdbce82e67f517ced523e7c54 [file] [log] [blame]
Jordan Rose1f6e22d2012-06-15 18:19:56 +00001// Note: the run lines follow all tests, since line/column matter here
2
3id testCompleteAfterAtSign() {
4 return @"";
5}
6
Tim Northover931a4fe2013-08-12 12:51:05 +00007// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:4:11 %s -fno-const-strings -o - | FileCheck -check-prefix=CHECK-AT %s
Jordan Rose1f6e22d2012-06-15 18:19:56 +00008// CHECK-AT: COMPLETION: Pattern : [#NSString *#]"<#string#>"
Douglas Gregor79615892012-07-17 23:24:47 +00009// CHECK-AT: COMPLETION: Pattern : [#id#](<#expression#>)
10// CHECK-AT: COMPLETION: Pattern : [#NSArray *#][<#objects, ...#>]
Jordan Rose1f6e22d2012-06-15 18:19:56 +000011// CHECK-AT: COMPLETION: Pattern : [#char[]#]encode(<#type-name#>)
12// CHECK-AT: COMPLETION: Pattern : [#Protocol *#]protocol(<#protocol-name#>)
13// CHECK-AT: COMPLETION: Pattern : [#SEL#]selector(<#selector#>)
Douglas Gregor66a3d472012-08-17 05:40:05 +000014// CHECK-AT: COMPLETION: Pattern : [#NSDictionary *#]{<#key#>: <#object, ...#>}
Jordan Rose1f6e22d2012-06-15 18:19:56 +000015
Tim Northover931a4fe2013-08-12 12:51:05 +000016// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:4:11 %s -fconst-strings -o - | FileCheck -check-prefix=CHECK-CONST-STRINGS %s
Jordan Rose1f6e22d2012-06-15 18:19:56 +000017// CHECK-CONST-STRINGS: COMPLETION: Pattern : [#const char[]#]encode(<#type-name#>)