xref: /aosp_15_r20/external/llvm/test/tools/llvm-split/extern_linkage.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; Test that extern_weak linkage is preserved.
2; RUN: llvm-split -o %t %s
3; RUN: llvm-dis -o - %t0 | FileCheck %s
4; RUN: llvm-dis -o - %t1 | FileCheck %s
5
6; Both declarations are extern_weak in all partitions.
7
8; CHECK: @x = extern_weak global i32, align 4
9@x = extern_weak global i32, align 4
10
11; CHECK: declare extern_weak void @f(...)
12declare extern_weak void @f(...)
13