Home | History | Annotate | Download | only in llvm-split
      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(...)
     12 declare extern_weak void @f(...)
     13