1/* Do not warn about "slightly" mismatched method signatures if 2 -Wstrict-selector-match is off. */ 3 4/* { dg-do compile } */ 5/* { dg-options "-Wno-strict-selector-match" } */ 6 7#include <objc/objc.h> 8 9typedef enum { en1_1, en1_2 } En1; 10typedef enum { en2_1, en2_2 } En2; 11typedef struct { int a, b; } St1; 12typedef struct { unsigned a, b; } St2; 13 14@interface Base 15- (id) meth1: (En1)arg1; 16- (St1) window; 17@end 18 19@interface Derived: Base 20- (id) meth1: (En2)arg1; 21- (St2)window; 22@end 23 24void foo(void) { 25 id r; 26 En1 en; 27 28 [r meth1:en]; 29 [r window]; 30} 31