mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 02:21:45 +00:00
3ab15558d7
RUN: foo RUN: bar || true is equivalent to: RUN: foo && bar || true which is equivalent to: RUN: (foo && bar) || true This resulted in several of the fixit tests not really testing anything. llvm-svn: 139132
30 lines
524 B
Objective-C
30 lines
524 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
|
|
// RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c++ %t
|
|
// rdar://9603056
|
|
|
|
@interface S @end
|
|
|
|
@interface NSArray
|
|
{
|
|
@public
|
|
S iS;
|
|
}
|
|
+ (id) arrayWithObjects;
|
|
@end
|
|
|
|
NSArray func() {
|
|
NSArray P;
|
|
return P;
|
|
}
|
|
|
|
int main() {
|
|
NSArray pluginNames = [NSArray arrayWithObjects];
|
|
}
|