blob: aed2fd517afb0e0cab7d2b3f92bd53cc29334c1f [file] [log] [blame]
/* Testing for detecting duplicate ivars. */
/* { dg-do compile } */
typedef struct S { int i; } NSDictionary;
@interface A
{
NSDictionary * _userInfo;
}
@end
@interface B : A
{
NSDictionary * _userInfo; /* { dg-error "duplicate member" } */
}
@end
@interface C : A
@end
@interface D : C
{
NSDictionary * _userInfo; /* { dg-error "duplicate member" } */
}
@end