brintos

brintos / llvm-project-archived public Read only

0
0
Text · 425 B · 260c215 Raw
23 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3@interface B1 {4@public5  double fill_B;	// expected-note {{previous declaration is here}}6  unsigned : 0;7}8@end9 10@interface B : B1 {11@public12  int one;	// expected-note {{previous declaration is here}}13  int one;	// expected-error {{duplicate member 'one'}}14  unsigned : 0;15}16@end17 18@interface A : B {19@public20  int fill_B;	// expected-error {{duplicate member 'fill_B'}}21}22@end23