blob: d3c95a6e6ff125497d8dd0fa1c6233b1f7d73785 [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
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 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
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#>)