blob: 38994519cea45129dafa587004eaf805aba6d726 [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -inline -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3; Inlining the first call caused the inliner function to delete the second
4; call. Then the inliner tries to inline the second call, which no longer
5; exists.
6
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00007define internal void @Callee1() {
8 unwind
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
10
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000011define void @Callee2() {
12 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013}
14
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000015define void @caller() {
16 call void @Callee1( )
17 call void @Callee2( )
18 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019}
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000020