1 // RUN: %clang_cc1 -Woverriding-method-mismatch -fsyntax-only -verify -Wno-objc-root-class %s
5 -(void) setX: (int) arg0; // expected-note {{previous declaration is here}}
6 +(int) C; // expected-note {{previous declaration is here}}
10 -(void) setX: (float) arg0; // expected-note 2 {{previous declaration is here}}
11 +(float) C; // expected-note 2 {{previous declaration is here}}
14 @interface A <Xint, Xfloat>
18 -(void) setX: (int) arg0 { } // expected-warning {{conflicting parameter types in declaration of 'setX:': 'float' vs 'int'}}
19 +(int) C {return 0; } // expected-warning {{conflicting return type in declaration of 'C': 'float' vs 'int'}}
22 @interface B <Xfloat, Xint>
26 -(void) setX: (float) arg0 { } // expected-warning {{conflicting parameter types in declaration of 'setX:': 'int' vs 'float'}}
27 + (float) C {return 0.0; } // expected-warning {{conflicting return type in declaration of 'C': 'int' vs 'float'}}
30 @protocol Xint_float<Xint, Xfloat>
33 @interface C<Xint_float>
37 -(void) setX: (int) arg0 { } // expected-warning {{conflicting parameter types in declaration of 'setX:': 'float' vs 'int'}}
38 + (int) C {return 0;} // expected-warning {{conflicting return type in declaration of 'C': 'float' vs 'int'}}