2011-07-25 21:12:27 +00:00
|
|
|
// Objective-C recovery
|
|
|
|
// RUN: cp %s %t
|
2011-09-06 03:01:15 +00:00
|
|
|
// RUN: not %clang_cc1 -fixit -x objective-c %t
|
2011-07-25 21:12:27 +00:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c %t
|
|
|
|
|
|
|
|
// Objective-C++ recovery
|
|
|
|
// RUN: cp %s %t
|
2011-09-06 03:01:15 +00:00
|
|
|
// RUN: not %clang_cc1 -fixit -x objective-c++ %t
|
2011-07-25 21:12:27 +00:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c++ %t
|
|
|
|
// rdar://9603056
|
|
|
|
|
2011-07-26 17:58:54 +00:00
|
|
|
@interface S @end
|
|
|
|
|
2011-07-25 21:12:27 +00:00
|
|
|
@interface NSArray
|
2011-07-26 17:58:54 +00:00
|
|
|
{
|
|
|
|
@public
|
|
|
|
S iS;
|
|
|
|
}
|
2011-07-25 21:12:27 +00:00
|
|
|
+ (id) arrayWithObjects;
|
|
|
|
@end
|
|
|
|
|
2011-07-26 17:58:54 +00:00
|
|
|
NSArray func() {
|
|
|
|
NSArray P;
|
|
|
|
return P;
|
|
|
|
}
|
|
|
|
|
2011-07-25 21:12:27 +00:00
|
|
|
int main() {
|
|
|
|
NSArray pluginNames = [NSArray arrayWithObjects];
|
|
|
|
}
|