blob: a5e2cb918e0638769e4ad78a2d1069ef9a736254 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -verify %s
Fariborz Jahanian3281eff2008-12-16 01:08:35 +00002
3@interface B1 {
4@public
Douglas Gregor72de6672009-01-08 20:45:30 +00005 double fill_B; // expected-note {{previous declaration is here}}
Fariborz Jahanian3281eff2008-12-16 01:08:35 +00006}
7@end
8
9@interface B : B1 {
10@public
Douglas Gregor72de6672009-01-08 20:45:30 +000011 int one; // expected-note {{previous declaration is here}}
Fariborz Jahanian3281eff2008-12-16 01:08:35 +000012 int one; // expected-error {{duplicate member 'one'}}
13}
14@end
15
16@interface A : B {
17@public
18 int fill_B; // expected-error {{duplicate member 'fill_B'}}
19}
20@end