1; RUN: opt < %s -inline -S | FileCheck %s
2; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
3
4; 'bar' can be overridden at link-time, don't inline it.
5define weak void @bar() {
6; CHECK-LABEL: define weak void @bar()
7entry:
8  ret void
9}
10
11define void @foo() {
12; CHECK-LABEL: define void @foo()
13entry:
14  tail call void @bar()
15; CHECK: tail call void @bar()
16  ret void
17}
18
19