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
8 + (Singleton*) instance;
11 @implementation Singleton
13 - (void) someSelector { }
15 + (Singleton*) instance { return 0; }
19 [Singleton.instance someSelector]; // clang issues error here