minix/external/bsd/llvm/dist/clang/test/FixIt/fixit-static-object-decl.m
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

37 lines
679 B
Objective-C

// Objective-C recovery
// RUN: cp %s %t
// RUN: not %clang_cc1 -fixit -x objective-c %t
// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c %t
// Objective-C++ recovery
// RUN: cp %s %t
// RUN: not %clang_cc1 -fixit -x objective-c++ %t -std=c++11
// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c++ %t -std=c++11
// rdar://9603056
@interface S @end
@interface NSArray
{
@public
S iS;
}
+ (id) arrayWithObjects;
@end
NSArray func() {
NSArray P;
return P;
}
NSArray (func2)() { return 0; }
#ifdef __cplusplus
void test_result_type() {
auto l1 = [] () -> NSArray { return 0; };
}
#endif
int main() {
NSArray pluginNames = [NSArray arrayWithObjects];
}