| 1 | // Note: the run lines follow all tests, since line/column matter here |
| 2 | |
| 3 | id 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=CHECK-AT %s |
| 8 | // CHECK-AT: COMPLETION: Pattern : [#NSString *#]"<#string#>" |
| 9 | // CHECK-AT: COMPLETION: Pattern : [#id#](<#expression#>) |
| 10 | // CHECK-AT: COMPLETION: Pattern : [#NSArray *#][<#objects, ...#>] |
| 11 | // 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#>) |
| 14 | // CHECK-AT: COMPLETION: Pattern : [#NSDictionary *#]{<#key#>: <#object, ...#>} |
| 15 | |
| 16 | // 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 |
| 17 | // CHECK-CONST-STRINGS: COMPLETION: Pattern : [#const char[]#]encode(<#type-name#>) |
| 18 | |