// RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s
// RUN: grep '@g0_ext = extern_weak global i32' %t
extern int g0_ext ;
// RUN: grep 'declare extern_weak i32 @g1_ext()' %t
extern int ;
// RUN: grep '@g0_common = weak global i32' %t
int g0_common ;
// RUN: grep '@g0_def = weak global i32' %t
int g0_def = 52;
// RUN: grep 'define weak i32 @g1_def()' %t
int
// Force _ext references
void