fixit-static-object-decl.m revision 2315318436b3e94d54c220c3b8986e8002394a43
1// Objective-C recovery
2// RUN: cp %s %t
3// RUN: not %clang_cc1 -fixit -x objective-c %t
4// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c %t
5
6// Objective-C++ recovery
7// RUN: cp %s %t
8// RUN: not %clang_cc1 -fixit -x objective-c++ %t
9// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c++ %t
10// rdar://9603056
11
12@interface S @end
13
14@interface NSArray
15{
16@public
17  S iS;
18}
19+ (id) arrayWithObjects;
20@end
21
22NSArray func() {
23  NSArray P;
24  return P;
25}
26
27int main() {
28  	NSArray pluginNames = [NSArray arrayWithObjects];
29}
30