// RUN: %clang_cc1 -fsyntax-only -verify %s
@interfaceRoot@end@interfaceSuperClass:Root{int iSuper;// expected-note {{previous declaration is here}}
}@end@interfaceSubClass:SuperClass{int ivar;// expected-error {{duplicate member 'ivar'}}
int another_ivar;// expected-error {{duplicate member 'another_ivar'}}
int iSuper;// expected-error {{duplicate member 'iSuper'}}
}@end@interfaceSuperClass(){int ivar;// expected-note {{previous declaration is here}}
}@end@interfaceRoot(){int another_ivar;// expected-note {{previous declaration is here}}
}@end@implementationSubClass-(int)method{returnself->ivar;// would be ambiguous if the duplicate ivar were allowed
}@end