1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc@interface B1 { 4*f4a2713aSLionel Sambuc@public 5*f4a2713aSLionel Sambuc double fill_B; // expected-note {{previous declaration is here}} 6*f4a2713aSLionel Sambuc unsigned : 0; 7*f4a2713aSLionel Sambuc} 8*f4a2713aSLionel Sambuc@end 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc@interface B : B1 { 11*f4a2713aSLionel Sambuc@public 12*f4a2713aSLionel Sambuc int one; // expected-note {{previous declaration is here}} 13*f4a2713aSLionel Sambuc int one; // expected-error {{duplicate member 'one'}} 14*f4a2713aSLionel Sambuc unsigned : 0; 15*f4a2713aSLionel Sambuc} 16*f4a2713aSLionel Sambuc@end 17*f4a2713aSLionel Sambuc 18*f4a2713aSLionel Sambuc@interface A : B { 19*f4a2713aSLionel Sambuc@public 20*f4a2713aSLionel Sambuc int fill_B; // expected-error {{duplicate member 'fill_B'}} 21*f4a2713aSLionel Sambuc} 22*f4a2713aSLionel Sambuc@end 23