Do not warn with -Wuninitialized when the member is used in a sizeof or address-of...
[clang.git] / test / SemaObjC / protocol-id-test-2.m
bloba9365e9cb9327a8b71eb036b4e1a2aba523438e1
1 // RUN: %clang_cc1 -verify %s
3 @protocol P
4 @end
6 @interface INTF<P>
7 - (void)IMeth;
8 @end
10 @implementation INTF
11 - (void)IMeth { [(id<P>)self Meth]; }  // expected-warning {{method '-Meth' not found (return type defaults to 'id')}}
12 @end