forked from OSchip/llvm-project
18 lines
317 B
LLVM
18 lines
317 B
LLVM
; RUN: opt < %s -inline -S | FileCheck %s
|
|
|
|
; 'bar' can be overridden at link-time, don't inline it.
|
|
define weak void @bar() {
|
|
; CHECK-LABEL: define weak void @bar()
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
define void @foo() {
|
|
; CHECK-LABEL: define void @foo()
|
|
entry:
|
|
tail call void @bar()
|
|
; CHECK: tail call void @bar()
|
|
ret void
|
|
}
|
|
|