Home | History | Annotate | Download | only in CodeGenObjC
      1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
      2 // RUN: grep objc_assign_ivar %t | count 0
      3 // RUN: grep objc_assign_strongCast %t | count 5
      4 // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
      5 // RUN: grep objc_assign_ivar %t | count 0
      6 // RUN: grep objc_assign_strongCast %t | count 5
      7 
      8 @interface TestUnarchiver 
      9 {
     10 	void  *allUnarchivedObjects;
     11 }
     12 @end
     13 
     14 @implementation TestUnarchiver
     15 
     16 struct unarchive_list {
     17     int ifield;
     18     id *list;
     19 };
     20 
     21 - (id)init {
     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;
     26     return 0;
     27 }
     28 
     29 @end
     30