Keep the source location of the selector in ObjCMessageExpr.
[clang.git] / test / SemaObjC / duplicate-ivar-check.m
blob260c215c2154a4f9c82ba491c69ab2601a360f19
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 @interface B1 {
4 @public
5   double fill_B;        // expected-note {{previous declaration is here}}
6   unsigned : 0;
8 @end
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;
16 @end
18 @interface A : B {
19 @public
20   int fill_B;   // expected-error {{duplicate member 'fill_B'}}
22 @end