blob: a4e53210c2517b855ce15f13b04a1208ec7a045a [file] [log] [blame]
Fariborz Jahanian2e8f00c2010-01-19 18:39:17 +00001// RUN: %clang_cc1 -fsyntax-only -Wunused-parameter -verify %s
2
3@interface INTF
4- (void) correct_use_of_unused: (void *) notice : (id)another_arg;
5- (void) will_warn_unused_arg: (void *) notice : (id)warn_unused;
6- (void) unused_attr_on_decl_ignored: (void *) __attribute__((unused)) will_warn;
7@end
8
9@implementation INTF
10- (void) correct_use_of_unused: (void *) __attribute__((unused)) notice : (id) __attribute__((unused)) newarg{
11}
12- (void) will_warn_unused_arg: (void *) __attribute__((unused)) notice : (id)warn_unused {} // expected-warning {{unused parameter 'warn_unused'}}
13- (void) unused_attr_on_decl_ignored: (void *) will_warn{} // expected-warning {{unused parameter 'will_warn'}}
14@end
15