blob: c9661e275e0036d41ba6df0ccfe85b074b8416c6 [file] [log] [blame]
Fariborz Jahaniandcf10112011-07-25 21:12:27 +00001// 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
16int main() {
17 NSArray pluginNames = [NSArray arrayWithObjects];
18}