1 ; RUN: llvm-link %s %p/Inputs/ctors.ll -S -o - | \
2 ; RUN: FileCheck --check-prefix=ALL --check-prefix=CHECK1 %s
3 ; RUN: llvm-link %p/Inputs/ctors.ll %s -S -o - | \
4 ; RUN: FileCheck --check-prefix=ALL --check-prefix=CHECK2 %s
7 ; CHECK1: @v = weak global i8 0
8 ; CHECK2: @v = weak global i8 1
10 @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* @v }]
11 ; ALL: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* @v }]
13 define weak void @f() {