llvm-project/clang/test/FixIt/fixit-static-object-decl.m
Aaron Ballman d618f1c3b1 Remove rdar links; NFC
This removes links to rdar, which is an internal bug tracker that the
community doesn't have visibility into.

See further discussion at:
https://discourse.llvm.org/t/code-review-reminder-about-links-in-code-commit-messages/71847
2023-07-07 08:41:11 -04:00

37 lines
673 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
@interface S @end
@interface NSArray
{
@public
S iS;
}
+ (id) arrayWithObjects;
@end
NSArray func(void) {
NSArray P;
return P;
}
NSArray (func2)(void) { return 0; }
#ifdef __cplusplus
void test_result_type() {
auto l1 = [] () -> NSArray { return 0; };
}
#endif
int main(void) {
NSArray pluginNames = [NSArray arrayWithObjects];
}