; RUN: llvm-link -S %s -o - | FileCheck %s

define void @f() {
  ret void
}

; We lazy link @v, which causes llvm.global_ctors to have the corresponding
; entry.
@v = linkonce global i8 42

@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* @v }]

; CHECK: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* @v }]


Add an interesting case we already get right.
Add an interesting case we already get right.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@254514 91177308-0d34-0410-b5e6-96231b3b80d8
