| 1 |
// RUN: %clang_cc1 -fsyntax-only -Wunused-parameter -verify -Wno-objc-root-class %s |
| 2 |
|
| 3 |
// -Wunused-parameter ignores ObjC method parameters that are unused. |
| 4 |
|
| 5 |
// expected-no-diagnostics |
| 6 |
|
| 7 |
@interface INTF |
| 8 |
- (void) correct_use_of_unused: (void *) notice : (id)another_arg; |
| 9 |
- (void) will_warn_unused_arg: (void *) notice : (id)warn_unused; |
| 10 |
- (void) unused_attr_on_decl_ignored: (void *) __attribute__((unused)) will_warn; |
| 11 |
@end |
| 12 |
|
| 13 |
@implementation INTF |
| 14 |
- (void) correct_use_of_unused: (void *) __attribute__((unused)) notice : (id) __attribute__((unused)) newarg{ |
| 15 |
} |
| 16 |
- (void) will_warn_unused_arg: (void *) __attribute__((unused)) notice : (id)warn_unused {} |
| 17 |
- (void) unused_attr_on_decl_ignored: (void *) will_warn{} |
| 18 |
@end |
| 19 |
|