blob: e13900fa786f483a6ffc218e3938ee18d70e8d33 [file] [log] [blame]
Fariborz Jahaniandcf10112011-07-25 21:12:27 +00001// Objective-C recovery
2// RUN: cp %s %t
Richard Smith23153182011-09-06 03:01:15 +00003// RUN: not %clang_cc1 -fixit -x objective-c %t
Fariborz Jahaniandcf10112011-07-25 21:12:27 +00004// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c %t
5
6// Objective-C++ recovery
7// RUN: cp %s %t
Richard Smith23153182011-09-06 03:01:15 +00008// RUN: not %clang_cc1 -fixit -x objective-c++ %t
Fariborz Jahaniandcf10112011-07-25 21:12:27 +00009// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c++ %t
10// rdar://9603056
11
Fariborz Jahanian8eaefdc2011-07-26 17:58:54 +000012@interface S @end
13
Fariborz Jahaniandcf10112011-07-25 21:12:27 +000014@interface NSArray
Fariborz Jahanian8eaefdc2011-07-26 17:58:54 +000015{
16@public
17 S iS;
18}
Fariborz Jahaniandcf10112011-07-25 21:12:27 +000019+ (id) arrayWithObjects;
20@end
21
Fariborz Jahanian8eaefdc2011-07-26 17:58:54 +000022NSArray func() {
23 NSArray P;
24 return P;
25}
26
Fariborz Jahaniandcf10112011-07-25 21:12:27 +000027int main() {
28 NSArray pluginNames = [NSArray arrayWithObjects];
29}