diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-09-06 18:38:58 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-09-06 18:38:58 +0000 |
commit | 3359fa306836ffb64401aad4b561e7647b20d6ef (patch) | |
tree | 57f1c93df8b0e692703def082e4ed06abfed2fbd /test/SemaObjC/unused.m | |
parent | cddbc1d5872c96cd8c3ad3ddededa304757270d7 (diff) |
refactoring + objective-C specific test for my last patch.
// rdar://12233989
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/unused.m')
-rw-r--r-- | test/SemaObjC/unused.m | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/SemaObjC/unused.m b/test/SemaObjC/unused.m index 5c7542bf47..efaf9c8f3e 100644 --- a/test/SemaObjC/unused.m +++ b/test/SemaObjC/unused.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -verify -Wunused -Wunused-parameter -fsyntax-only -Wno-objc-root-class %s +// RUN: %clang_cc1 -verify -Wused-but-marked-unused -Wno-objc-protocol-method-implementation -Wunused -Wunused-parameter -fsyntax-only -Wno-objc-root-class %s int printf(const char *, ...); @@ -53,3 +53,17 @@ void test2() { // rdar://10777111 static NSString *x = @"hi"; // expected-warning {{unused variable 'x'}} + +// rdar://12233989 +@interface TestTransitiveUnused +- (void) a __attribute__((unused)); +- (void) b __attribute__((unused)); +@end + +@interface TestTransitiveUnused(CAT) +@end + +@implementation TestTransitiveUnused(CAT) +- (void) b {} +- (void) a { [self b]; } +@end |