1 ; RUN: llvm-as < %s | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
5 %FunTy = type i32 (i32)
7 define void @invoke(ptr %x) {
8 %foo = call i32 %x( i32 123 ) ; <i32> [#uses=0]
9 %foo2 = tail call i32 %x( i32 123 ) ; <i32> [#uses=0]
13 define i32 @main(i32 %argc) personality ptr @__gxx_personality_v0 {
14 %retval = call i32 @test( i32 %argc ) ; <i32> [#uses=2]
15 %two = add i32 %retval, %retval ; <i32> [#uses=1]
16 %retval2 = invoke i32 @test( i32 %argc )
17 to label %Next unwind label %Error ; <i32> [#uses=1]
20 %two2 = add i32 %two, %retval2 ; <i32> [#uses=1]
21 call void @invoke( ptr @test )
25 %exn = landingpad {ptr, i32}
30 define i32 @test(i32 %i0) {
34 declare i32 @__gxx_personality_v0(...)