You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.167
Former-commit-id: 289509151e0fee68a1b591a20c9f109c3c789d3a
This commit is contained in:
parent
e19d552987
commit
b084638f15
24
external/llvm/test/Other/extract-linkonce.ll
vendored
24
external/llvm/test/Other/extract-linkonce.ll
vendored
@ -1,24 +0,0 @@
|
||||
; RUN: llvm-extract -func foo -S < %s | FileCheck %s
|
||||
; RUN: llvm-extract -delete -func foo -S < %s | FileCheck --check-prefix=DELETE %s
|
||||
|
||||
; Test that linkonce definitions are mapped to weak so that they are not
|
||||
; dropped.
|
||||
|
||||
; CHECK: @bar = external global i32
|
||||
; CHECK: define weak i32* @foo() {
|
||||
; CHECK-NEXT: ret i32* @bar
|
||||
; CHECK-NEXT: }
|
||||
|
||||
; DELETE: @bar = weak global i32 42
|
||||
; DELETE: declare i32* @foo()
|
||||
|
||||
@bar = linkonce global i32 42
|
||||
|
||||
define linkonce i32* @foo() {
|
||||
ret i32* @bar
|
||||
}
|
||||
|
||||
define void @g() {
|
||||
call i32* @foo()
|
||||
ret void
|
||||
}
|
Reference in New Issue
Block a user