1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Linker/ctors4.ll
Rafael Espindola 77a66c07ef Add an interesting case we already get right.
llvm-svn: 254514
2015-12-02 15:02:43 +00:00

15 lines
455 B
LLVM

; 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 }]