1; RUN: opt -inline -S < %s | FileCheck %s
2; PR6682
3declare void @foo() nounwind
4
5define void @bar() nounwind {
6entry:
7    tail call void @foo() nounwind
8    ret void
9}
10
11define void @bazz() nounwind {
12entry:
13    tail call void @bar() nounwind noinline
14    ret void
15}
16
17; CHECK: define void @bazz()
18; CHECK: call void @bar()
19