Jordan Rose | 1f6e22d | 2012-06-15 18:19:56 +0000 | [diff] [blame] | 1 | // Note: the run lines follow all tests, since line/column matter here |
| 2 | |
| 3 | id testCompleteAfterAtSign() { |
| 4 | return @""; |
| 5 | } |
| 6 | |
Tim Northover | 931a4fe | 2013-08-12 12:51:05 +0000 | [diff] [blame] | 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 |
Jordan Rose | 1f6e22d | 2012-06-15 18:19:56 +0000 | [diff] [blame] | 8 | // CHECK-AT: COMPLETION: Pattern : [#NSString *#]"<#string#>" |
Douglas Gregor | 7961589 | 2012-07-17 23:24:47 +0000 | [diff] [blame] | 9 | // CHECK-AT: COMPLETION: Pattern : [#id#](<#expression#>) |
| 10 | // CHECK-AT: COMPLETION: Pattern : [#NSArray *#][<#objects, ...#>] |
Jordan Rose | 1f6e22d | 2012-06-15 18:19:56 +0000 | [diff] [blame] | 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#>) |
Douglas Gregor | 66a3d47 | 2012-08-17 05:40:05 +0000 | [diff] [blame] | 14 | // CHECK-AT: COMPLETION: Pattern : [#NSDictionary *#]{<#key#>: <#object, ...#>} |
Jordan Rose | 1f6e22d | 2012-06-15 18:19:56 +0000 | [diff] [blame] | 15 | |
Tim Northover | 931a4fe | 2013-08-12 12:51:05 +0000 | [diff] [blame] | 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 |
Jordan Rose | 1f6e22d | 2012-06-15 18:19:56 +0000 | [diff] [blame] | 17 | // CHECK-CONST-STRINGS: COMPLETION: Pattern : [#const char[]#]encode(<#type-name#>) |