XFAIL vg_leak the new test as the rest.
[oota-llvm.git] / test / Integer / simplecalltest_bt.ll
1 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
4
5 %FunTy = type i31(i31)
6
7
8 define void @"invoke"(%FunTy *%x)
9 begin
10         %foo = call %FunTy* %x(i31 123)
11         ret void
12 end
13
14 define i31 @"main"(i31 %argc, i8 **%argv, i8 **%envp)
15 begin
16         %retval = call i31 (i31) *@test(i31 %argc)
17         %two    = add i31 %retval, %retval
18         %retval2 = call i31 @test(i31 %argc)
19
20         %two2 = add i31 %two, %retval2
21         call void @invoke (%FunTy* @test)
22         ret i31 %two2
23 end
24
25 define i31 @"test"(i31 %i0)
26 begin
27     ret i31 %i0
28 end