1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 05:52:53 +02:00
llvm-mirror/test/tools/gold/X86/alias2.ll
Rafael Espindola 0ba5a45ed3 Add a few passing lto tests.
I found these while trying to get a prototype to bootstrap.

They cover things like
* Handling of non linker visible stuff (append, available_externally)
* Type merging
* Alias to dropped globals
* Dropping linkage when converting to a declaration.

These should hopefully be generally useful for anyone refactoring the
plugin.

llvm-svn: 254174
2015-11-26 19:53:12 +00:00

24 lines
518 B
LLVM

; RUN: llvm-as %s -o %t.o
; RUN: %gold -shared -o %t2.bc -plugin %llvmshlibdir/LLVMgold.so %t.o -plugin-opt=emit-llvm
; RUN: llvm-dis %t2.bc -o - | FileCheck %s
@bar = alias void (), void ()* @zed
define void @foo() {
call void @bar()
ret void
}
define void @zed() {
ret void
}
; CHECK: @bar = alias void (), void ()* @zed
; CHECK: define void @foo() {
; CHECK-NEXT: call void @bar()
; CHECK-NEXT: ret void
; CHECK-NEXT: }
; CHECK: define void @zed() {
; CHECK-NEXT: ret void
; CHECK-NEXT: }