blob: 45dc0f1aaca29d989471ef0d768a48f9ad74b370 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; 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
8define void @"invoke"(%FunTy *%x)
9begin
10 %foo = call %FunTy* %x(i31 123)
11 ret void
12end
13
14define i31 @"main"(i31 %argc, i8 **%argv, i8 **%envp)
15begin
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
23end
24
25define i31 @"test"(i31 %i0)
26begin
27 ret i31 %i0
28end