Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s
      2 // rdar://18013929
      3 
      4 @protocol P
      5 - (void)meth;
      6 @end
      7 
      8 @interface I <P>
      9 @end
     10 
     11 @interface I(cat)
     12 - (void)meth __attribute__((deprecated)); // expected-note {{'meth' has been explicitly marked deprecated here}}
     13 @end
     14 
     15 void foo(I *i) {
     16   [i meth]; // expected-warning {{'meth' is deprecated}}
     17 }
     18