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 4 // rdar://8962253 5 6 @interface Singleton { 7 } 8 + (Singleton*) instance; 9 @end 10 11 @implementation Singleton 12 13 - (void) someSelector { } 14 15 + (Singleton*) instance { return 0; } 16 17 + (void) compileError 18 { 19 [Singleton.instance someSelector]; // clang issues error here 20 } 21 22 @end 23 24