1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2 // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s
3 // expected-no-diagnostics
7 + (Singleton*) instance;
10 @implementation Singleton
12 - (void) someSelector { }
14 + (Singleton*) instance { return 0; }
18 [Singleton.instance someSelector]; // clang issues error here