forked from OSchip/llvm-project
23 lines
569 B
LLVM
23 lines
569 B
LLVM
; RUN: llvm-as %s -o %t1.o
|
|
; RUN: llvm-as %p/Inputs/available-externally.ll -o %t2.o
|
|
; RUN: ld.lld %t1.o %t2.o -m elf_x86_64 -o %t.so -shared -save-temps
|
|
; RUN: llvm-dis < %t.so.lto.bc | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
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() {
|