Do not warn with -Wuninitialized when the member is used in a sizeof or address-of...
[clang.git] / test / SemaObjC / comptypes-4.m
blob56b23b22458fe2f8bec353ccd197e3d415a242ba
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 extern void foo();
5 @protocol MyProtocol @end
7 @interface MyClass @end
9 int main()
11   MyClass <MyProtocol> *obj_p;
12   MyClass *obj_cp;
14   obj_cp = obj_p;  
15   obj_p = obj_cp;
17   if (obj_cp == obj_p)
18     foo();
20   if (obj_p == obj_cp)
21     foo();