1 // RUN: %clang_cc1 -triple x86_64-darwin-apple -emit-llvm -o - %s | FileCheck %s 2 // rdar://9538608 3 4 extern int A __attribute__((weak_import)); 5 int A; 6 7 extern int B __attribute__((weak_import)); 8 extern int B; 9 10 int C; 11 extern int C __attribute__((weak_import)); 12 13 extern int D __attribute__((weak_import)); 14 extern int D __attribute__((weak_import)); 15 int D; 16 17 extern int E __attribute__((weak_import)); 18 int E; 19 extern int E __attribute__((weak_import)); 20 21 // CHECK: @A = global i32 22 // CHECK-NOT: @B = 23 // CHECK: @C = common global i32 24 // CHECK: @D = global i32 25 // CHECK: @E = global i32 26 27