Fariborz Jahanian | dcf1011 | 2011-07-25 21:12:27 +0000 | [diff] [blame^] | 1 | // Objective-C recovery |
| 2 | // RUN: cp %s %t |
| 3 | // RUN: %clang_cc1 -fixit -x objective-c %t || true |
| 4 | // RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c %t |
| 5 | |
| 6 | // Objective-C++ recovery |
| 7 | // RUN: cp %s %t |
| 8 | // RUN: %clang_cc1 -fixit -x objective-c++ %t || true |
| 9 | // RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c++ %t |
| 10 | // rdar://9603056 |
| 11 | |
| 12 | @interface NSArray |
| 13 | + (id) arrayWithObjects; |
| 14 | @end |
| 15 | |
| 16 | int main() { |
| 17 | NSArray pluginNames = [NSArray arrayWithObjects]; |
| 18 | } |