1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
2 // RUN: not grep objc_assign_ivar %t
3 // RUN: grep objc_assign_strongCast %t | count 8
4 // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
5 // RUN: not grep objc_assign_ivar %t
6 // RUN: grep objc_assign_strongCast %t | count 8
8 @interface TestUnarchiver
10 void *allUnarchivedObjects;
14 @implementation TestUnarchiver
16 struct unarchive_list {
22 (*((struct unarchive_list *)allUnarchivedObjects)).list = 0;
23 ((struct unarchive_list *)allUnarchivedObjects)->list = 0;
24 (**((struct unarchive_list **)allUnarchivedObjects)).list = 0;
25 (*((struct unarchive_list **)allUnarchivedObjects))->list = 0;
42 p_animationState->_timer = 0;
43 (*p_animationState)._timer = 0;
44 (&(*p_animationState))->_timer = 0;