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
6 ; Both declarations are extern_weak in all partitions.
8 ; CHECK: @x = extern_weak global i32, align 4
9 @x = extern_weak global i32, align 4
11 ; CHECK: declare extern_weak void @f(...)
12 declare extern_weak void @f(...)