Do not warn with -Wuninitialized when the member is used in a sizeof or address-of...
[clang.git] / test / Rewriter / rewrite-protocol-type-1.m
blob2bdf8e462223d3d26c4c7dacd58fa43d9f87e08e
1 // RUN: %clang_cc1 -rewrite-objc %s -o -
3 @protocol MyProto1 
4 @end
6 @protocol MyProto2
7 @end
9 @interface INTF @end
11 INTF <MyProto1> *g1;
13 INTF <MyProto1, MyProto2> *g2, *g3;
15 INTF <MyProto1> * Func(INTF <MyProto1> *p2, INTF<MyProto1> *p3, INTF *p4, INTF<MyProto1> *p5)
17         return p2;
20 INTF <MyProto1, MyProto2> * Func1(INTF *p2, INTF<MyProto1, MyProto2> *p3, INTF *p4, INTF<MyProto1> *p5)
22         return p3;
25 @interface Foo
26 @property int (*hashFunction)(const void *item, int (*size)(const void *item));
27 @end