Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 %s -fsyntax-only -verify
      2 // expected-no-diagnostics
      3 @interface A
      4 {
      5   int ivar;
      6 }
      7 @end
      8 
      9 @interface B : A
     10 - (int)ivar;
     11 @end
     12 
     13 @implementation B
     14 - (int)ivar {
     15   return ivar;
     16 } 
     17 @end
     18