Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaObjC/warn-category-method-deprecated.m @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s // rdar://18013929 @protocol P - (void)meth; @end @interface I <P> @end @interface I(cat) - (void)meth __attribute__((deprecated)); // expected-note {{'meth' has been explicitly marked deprecated here}} @end void foo(I *i) { [i meth]; // expected-warning {{'meth' is deprecated}} }