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.
19 lines
375 B
19 lines
375 B
4 months ago
|
; RUN: opt < %s -inline -S | FileCheck %s
|
||
|
; RUN: opt < %s -passes='cgscc(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
|
||
|
}
|
||
|
|