Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s 
      2 // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify %s 
      3 // rdar://8962253
      4 
      5 @interface Singleton {
      6 }
      7 + (Singleton*) instance;
      8 @end
      9 
     10 @implementation Singleton
     11 
     12 - (void) someSelector { }
     13 
     14 + (Singleton*) instance { return 0; }
     15 
     16 + (void) compileError
     17 {
     18      [Singleton.instance  someSelector]; // clang issues error here
     19 }
     20 
     21 @end
     22 
     23