[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / SemaObjC / warn-category-method-deprecated.m
blob30c11d6dd34f71f7c129ce4ecd0c94406166c6ea
1 // RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s
3 @protocol P
4 - (void)meth;
5 @end
7 @interface I <P>
8 @end
10 @interface I(cat)
11 - (void)meth __attribute__((deprecated)); // expected-note {{'meth' has been explicitly marked deprecated here}}
12 @end
14 void foo(I *i) {
15   [i meth]; // expected-warning {{'meth' is deprecated}}