blob: b59586ab96cfbbc8c89b38e68d1af25e333a6c52 [file] [log] [blame]
Jordan Rose9da05852012-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
7// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:4:11 %s -fno-const-strings -o - | FileCheck -check-prefix=AT %s
8// CHECK-AT: COMPLETION: Pattern : [#NSString *#]"<#string#>"
Douglas Gregor951de302012-07-17 23:24:47 +00009// CHECK-AT: COMPLETION: Pattern : [#id#](<#expression#>)
10// CHECK-AT: COMPLETION: Pattern : [#NSArray *#][<#objects, ...#>]
Jordan Rose9da05852012-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 Gregor951de302012-07-17 23:24:47 +000014// CHECK-AT: COMPLETION: Pattern : [#NSDictionary *#]{<#key#> : <#object, ...#>}
Jordan Rose9da05852012-06-15 18:19:56 +000015
16// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:4:11 %s -fconst-strings -o - | FileCheck -check-prefix=CONST-STRINGS %s
17// CHECK-CONST-STRINGS: COMPLETION: Pattern : [#const char[]#]encode(<#type-name#>)