37 lines · plain
1// Objective-C recovery2// RUN: cp %s %t3// RUN: not %clang_cc1 -fixit -x objective-c %t4// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c %t5 6// Objective-C++ recovery7// RUN: cp %s %t8// RUN: not %clang_cc1 -fixit -x objective-c++ %t -std=c++119// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c++ %t -std=c++1110 11@interface S @end12 13@interface NSArray14{15@public16 S iS;17}18+ (id) arrayWithObjects;19@end20 21NSArray func(void) {22 NSArray P;23 return P;24}25 26NSArray (func2)(void) { return 0; }27 28#ifdef __cplusplus29void test_result_type() {30 auto l1 = [] () -> NSArray { return 0; };31}32#endif33 34int main(void) {35 NSArray pluginNames = [NSArray arrayWithObjects];36}37