blob: 7b7fe568259e498c5974edf4b5871cedff54a4ed [file] [log] [blame]
Rafael Espindola0e00c6c2011-05-16 03:05:33 +00001; RUN: opt < %s -tailcallelim -S | FileCheck %s
2
3; Test that we don't tail call in a functions that calls setjmp.
4
5; CHECK-NOT: tail call void @bar()
6
7define void @foo(i32* %x) {
8bb:
9 %tmp75 = tail call i32 @setjmp(i32* %x)
10 call void @bar()
11 ret void
12}
13
14declare i32 @setjmp(i32*)
15
16declare void @bar()