forked from OSchip/llvm-project
Make the test a bit more interesting.
It now covers a regular function replacing an available_externally one. llvm-svn: 254184
This commit is contained in:
parent
8359a6a83e
commit
1d3465f641
|
@ -1,16 +1,22 @@
|
|||
; RUN: llvm-as %s -o %t.o
|
||||
; RUN: llvm-as %p/Inputs/available-externally.ll -o %t2.o
|
||||
|
||||
; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
|
||||
; RUN: --plugin-opt=emit-llvm \
|
||||
; RUN: -shared %t.o -o %t2.o
|
||||
; RUN: llvm-dis %t2.o -o - | FileCheck %s
|
||||
; RUN: -shared %t.o %t2.o -o %t3.o
|
||||
; RUN: llvm-dis %t3.o -o - | FileCheck %s
|
||||
|
||||
define void @foo() {
|
||||
call void @bar()
|
||||
call void @zed()
|
||||
ret void
|
||||
}
|
||||
define available_externally void @bar() {
|
||||
ret void
|
||||
}
|
||||
define available_externally void @zed() {
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: define available_externally void @bar() {
|
||||
; CHECK: define void @zed() {
|
||||
|
|
Loading…
Reference in New Issue