13 lines · plain
1; Test that extern_weak linkage is preserved.2; RUN: llvm-split -o %t %s3; RUN: llvm-dis -o - %t0 | FileCheck %s4; RUN: llvm-dis -o - %t1 | FileCheck %s5 6; Both declarations are extern_weak in all partitions.7 8; CHECK: @x = extern_weak global i32, align 49@x = extern_weak global i32, align 410 11; CHECK: declare extern_weak void @f(...)12declare extern_weak void @f(...)13