23 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-darwin10.4 -verify -Wno-objc-root-class %s2// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -triple x86_64-apple-darwin10.4 -verify -Wno-objc-root-class %s3 4// expected-no-diagnostics5@interface A6+ (void)F __attribute__((no_instrument_function)); // no warning7- (void)f __attribute__((objc_direct, no_instrument_function));8- (void)g;9@end10 11@implementation A12+ (void)F __attribute__((no_instrument_function)) {13 [self F];14}15 16- (void)f {17 [self g];18}19 20- (void)g {21}22@end23