1 // RUN: %clang_cc1 -Woverriding-method-mismatch -fsyntax-only -verify -Wno-objc-root-class %s
5 - (bycopy id)bud; // expected-note {{previous declaration is here}}
6 - (unsigned char) baz; // expected-note {{previous declaration is here}}
13 - (unsigned char) baz; // expected-note {{previous declaration is here}}
14 - (unsigned char) also_ok; // expected-note {{previous declaration is here}}
15 - (void) ban : (int) arg, ...; // expected-note {{previous declaration is here}}
18 @protocol Baz <Bar, Bar1>
19 - (void) bar : (unsigned char)arg; // expected-note {{previous declaration is here}}
21 - (char) bak; // expected-note {{previous declaration is here}}
25 - (id)bud; // expected-warning {{conflicting distributed object modifiers on return type in declaration of 'bud'}}
26 - (void) baz; // expected-warning 2 {{conflicting return type in declaration of 'baz': 'unsigned char' vs 'void'}}
27 - (void) bar : (unsigned char*)arg; // expected-warning {{conflicting parameter types in declaration of 'bar:': 'unsigned char' vs 'unsigned char *'}}
29 - (void) also_ok; // expected-warning {{conflicting return type in declaration of 'also_ok': 'unsigned char' vs 'void'}}
31 - (void) ban : (int) arg; // expected-warning {{conflicting variadic declaration of method and its implementation}}
39 - (bycopy id)bud { return 0; }
41 - (void) bar : (unsigned char*)arg {}
45 - (void) ban : (int) arg {}
46 - (void) bak {} // expected-warning {{conflicting return type in declaration of 'bak': 'char' vs 'void'}}