1 // RUN: %clang_cc1 -Woverriding-method-mismatch -fsyntax-only -verify -Wno-objc-root-class %s
4 -(void) setX: (int) arg0; // expected-note {{previous declaration is here}}
5 +(int) C; // expected-note {{previous declaration is here}}
9 -(void) setX: (float) arg0; // expected-note 2 {{previous declaration is here}}
10 +(float) C; // expected-note 2 {{previous declaration is here}}
13 @interface A <Xint, Xfloat>
17 -(void) setX: (int) arg0 { } // expected-warning {{conflicting parameter types in declaration of 'setX:': 'float' vs 'int'}}
18 +(int) C {return 0; } // expected-warning {{conflicting return type in declaration of 'C': 'float' vs 'int'}}
21 @interface B <Xfloat, Xint>
25 -(void) setX: (float) arg0 { } // expected-warning {{conflicting parameter types in declaration of 'setX:': 'int' vs 'float'}}
26 + (float) C {return 0.0; } // expected-warning {{conflicting return type in declaration of 'C': 'int' vs 'float'}}
29 @protocol Xint_float<Xint, Xfloat>
32 @interface C<Xint_float>
36 -(void) setX: (int) arg0 { } // expected-warning {{conflicting parameter types in declaration of 'setX:': 'float' vs 'int'}}
37 + (int) C {return 0;} // expected-warning {{conflicting return type in declaration of 'C': 'float' vs 'int'}}