Home | History | Annotate | Download | only in Linker
      1 ; RUN: llvm-link -S %s -o - | FileCheck %s
      2 
      3 define void @f() {
      4   ret void
      5 }
      6 
      7 ; We lazy link @v, which causes llvm.global_ctors to have the corresponding
      8 ; entry.
      9 @v = linkonce global i8 42
     10 
     11 @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* @v }]
     12 
     13 ; CHECK: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* @v }]
     14 
     15