// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -F '@objc_assign_global' %t | count 26
@class NSObject;
typedef const struct __CFDictionary * CFDictionaryRef;
typedef struct struct_with_ids_t;
// assignments to these should generate objc_assign_global
typedef struct s0 T;
T g0;
extern id FileExternID;
static id FileStaticID;
id GlobalId;
id GlobalArray;
NSObject *GlobalObject;
NSObject *GlobalObjectArray;
__strong CFDictionaryRef Gdict;
__strong CFDictionaryRef Gdictarray;
struct_with_ids_t GlobalStruct;
struct_with_ids_t GlobalStructArray;
void *rhs = 0;
int