Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -triple x86_64-apple-darwin9.0.0 -fsyntax-only -verify %s
      2 @interface A
      3 - (void)method __attribute__((availability(macosx,introduced=10.1,deprecated=10.2)));
      4 @end
      5 
      6 @interface B : A
      7 - (void)method;
      8 @end
      9 
     10 void f(A *a, B *b) {
     11   [a method]; // expected-warning{{'method' is deprecated: first deprecated in Mac OS X 10.2}}
     12   [b method];
     13 }
     14