Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / attr-weak-import.c
blob96a606fa591e74d1bf5536674165478180bad8f0
1 // RUN: %clang_cc1 -triple x86_64-darwin-apple -emit-llvm -o - %s | FileCheck %s
3 extern int A __attribute__((weak_import));
4 int A;
6 extern int B __attribute__((weak_import));
7 extern int B;
9 int C;
10 extern int C __attribute__((weak_import));
12 extern int D __attribute__((weak_import));
13 extern int D __attribute__((weak_import));
14 int D;
16 extern int E __attribute__((weak_import));
17 int E;
18 extern int E __attribute__((weak_import));
20 // CHECK: @A = global i32
21 // CHECK-NOT: @B =
22 // CHECK: @C = global i32
23 // CHECK: @D = global i32
24 // CHECK: @E = global i32