1 // RUN: %clang_cc1 -fsyntax-only -Werror -verify -Wno-objc-root-class -Wno-strict-prototypes %s
2 // expected-no-diagnostics
8 @implementation MyClass
10 [self privateMethod]; // clang already does not warn here
13 int bar(MyClass * myObject) {
14 [myObject privateMethod];
15 return gorfbar(myObject);
17 - (void)privateMethod { }
19 int gorfbar(MyClass * myObject) {
20 [myObject privateMethod];
21 [myObject privateMethod1];
22 return getMe + bar(myObject);
28 [myObject privateMethod];
29 [myObject privateMethod1];
30 return getMe + bar(myObject);
33 - (void)privateMethod1 {
39 static int test(void) {