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:
Rafael Espindola 2015-11-27 02:07:37 +00:00
parent 8359a6a83e
commit 1d3465f641
1 changed files with 8 additions and 2 deletions

View File

@ -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() {