blob: d857bda77234152e521001bf8f36d07dfc70d7db [file] [log] [blame]
Douglas Gregor710e0c42011-09-23 20:28:32 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin9.0.0 -fsyntax-only -verify %s
Douglas Gregorc193dd82011-09-23 20:23:42 +00002@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
10void 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}