1 // RUN: %clang_cc1 -x objective-c++ -std=c++11 -fsyntax-only -Werror -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
6 void SortWithCollator();
13 @implementation MyClass
15 [self privateMethod]; // clang already does not warn here
18 int bar(MyClass * myObject) {
19 [myObject privateMethod];
20 return gorfbar(myObject);
22 - (void)privateMethod { }
24 int gorfbar(MyClass * myObject) {
25 [myObject privateMethod];
26 [myObject privateMethod1];
27 return getMe + bar(myObject);
30 - (void)privateMethod1 {
43 void X::SortWithCollator() {}
46 int CurrentTabId() {return 0;}