1 // RUN: %clang_cc1 -fsyntax-only -Werror -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
9 @implementation MyClass
11 [self privateMethod]; // clang already does not warn here
14 int bar(MyClass * myObject) {
15 [myObject privateMethod];
16 return gorfbar(myObject);
18 - (void)privateMethod { }
20 int gorfbar(MyClass * myObject) {
21 [myObject privateMethod];
22 [myObject privateMethod1];
23 return getMe + bar(myObject);
29 [myObject privateMethod];
30 [myObject privateMethod1];
31 return getMe + bar(myObject);
34 - (void)privateMethod1 {