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