Do not warn with -Wuninitialized when the member is used in a sizeof or address-of...
[clang.git] / test / SemaObjC / class-extension-dup-methods.m
blob452d242888af595bfe1b1b6c2b3a30f6aae8f2cd
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 @interface Foo
4 - (int)  garf; // expected-note {{ previous declaration is here}}
5 - (int) OK;
6 + (int)  cgarf; // expected-note {{ previous declaration is here}}
7 - (int)  InstMeth;
8 @end
10 @interface Foo()
11 - (void)  garf; // expected-error {{duplicate declaration of method 'garf'}}
12 + (void)  cgarf; // expected-error {{duplicate declaration of method 'cgarf'}}
13 + (int)  InstMeth;
14 - (int) OK;
15 @end