1/* Testing for detecting duplicate ivars. */ 2/* { dg-do compile } */ 3 4@interface A 5{ 6 char x; /* { dg-message "previous declaration" } */ 7 char x; 8} /* { dg-error "redeclaration" } */ 9@end 10 11@interface B : A 12{ 13 char y; 14} 15@end 16