mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00:00
7779b87b25
It would crash when the function was lazy linked. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223656 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
431 B
LLVM
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 {
|