You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
455 B
15 lines
455 B
; 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 }]
|
|
|