2009-11-08 09:45:36 +08:00
|
|
|
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
|
|
|
|
// RUN: grep objc_assign_ivar %t | count 0
|
|
|
|
// RUN: grep objc_assign_strongCast %t | count 5
|
2009-10-01 01:10:29 +08:00
|
|
|
|
|
|
|
@interface TestUnarchiver
|
|
|
|
{
|
|
|
|
void *allUnarchivedObjects;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation TestUnarchiver
|
|
|
|
|
|
|
|
struct unarchive_list {
|
|
|
|
int ifield;
|
|
|
|
id *list;
|
|
|
|
};
|
|
|
|
|
|
|
|
- (id)init {
|
|
|
|
(*((struct unarchive_list *)allUnarchivedObjects)).list = 0;
|
|
|
|
((struct unarchive_list *)allUnarchivedObjects)->list = 0;
|
|
|
|
(**((struct unarchive_list **)allUnarchivedObjects)).list = 0;
|
|
|
|
(*((struct unarchive_list **)allUnarchivedObjects))->list = 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|