1 ; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s
3 ; Test that we don't tail call in a functions that calls returns_twice
9 ; CHECK-NOT: tail call void @bar()
11 define void @foo1(i32* %x) {
13 %tmp75 = tail call i32 @setjmp(i32* %x)
18 declare i32 @setjmp(i32*) returns_twice
21 ; CHECK-NOT: tail call void @bar()
23 define void @foo2(i32* %x) {
25 %tmp75 = tail call i32 @zed2(i32* %x)
29 declare i32 @zed2(i32*) returns_twice