1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Linker/prologuedata.ll
Rafael Espindola 3c2d7f1a72 Fix linking of prologue data.
It would crash when the function was lazy linked.

llvm-svn: 223656
2014-12-08 13:44:38 +00:00

22 lines
431 B
LLVM

; RUN: llvm-link %s -S -o - | FileCheck %s
@g1 = global void()* @f2
; CHECK: @g1 = global void ()* @f2
@p1 = global i8 42
; CHECK: @p1 = global i8 42
@p2 = internal global i8 43
; CHECK: @p2 = internal global i8 43
define void @f1() prologue i8* @p1 {
ret void
}
; CHECK: define void @f1() prologue i8* @p1 {
define internal void @f2() prologue i8* @p2 {
ret void
}
; CHECK: define internal void @f2() prologue i8* @p2 {