Debian Codegraph @

clang/test/SemaObjC/attr-noinstrument.m

raw
1 // RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-darwin10.4 -verify -Wno-objc-root-class %s
2 // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -triple x86_64-apple-darwin10.4 -verify -Wno-objc-root-class %s
3
4 // expected-no-diagnostics
5 @interface A
6 + (void)F __attribute__((no_instrument_function)); // no warning
7 - (void)f __attribute__((objc_direct, no_instrument_function));
8 - (void)g;
9 @end
10
11 @implementation A
12 + (void)F __attribute__((no_instrument_function)) {
13 [self F];
14 }
15
16 - (void)f {
17 [self g];
18 }
19
20 - (void)g {
21 }
22 @end