You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
518 B

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