Dmitri Gribenko | d7beca8 | 2013-01-01 13:57:25 +0000 | [diff] [blame] | 1 | ; RUN: opt -inline -S < %s | FileCheck %s |
Eric Christopher | b1a382d | 2010-03-25 04:49:10 +0000 | [diff] [blame] | 2 | ; PR6682 |
3 | declare void @foo() nounwind | ||||
4 | |||||
5 | define void @bar() nounwind { | ||||
6 | entry: | ||||
7 | tail call void @foo() nounwind | ||||
8 | ret void | ||||
9 | } | ||||
10 | |||||
11 | define void @bazz() nounwind { | ||||
12 | entry: | ||||
13 | tail call void @bar() nounwind noinline | ||||
14 | ret void | ||||
15 | } | ||||
16 | |||||
17 | ; CHECK: define void @bazz() | ||||
18 | ; CHECK: call void @bar() |