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 define fastcc void @foo() {
9 define coldcc void @bar() {
10 call fastcc void @foo( )
14 define void @structret(ptr sret({ i8 }) %P) {
15 call void @structret( ptr sret({ i8 }) %P )
23 define coldcc void @bar2() {
24 call fastcc void @foo( )
28 define cc42 void @bar3() personality ptr @__gxx_personality_v0 {
29 invoke fastcc void @foo( )
30 to label %Ok unwind label %U
36 %exn = landingpad {ptr, i32}
38 resume { ptr, i32 } %exn
41 define void @bar4() personality ptr @__gxx_personality_v0 {
42 call cc42 void @bar( )
43 invoke cc42 void @bar3( )
44 to label %Ok unwind label %U
50 %exn = landingpad {ptr, i32}
52 resume { ptr, i32 } %exn
55 declare ghccc void @ghc_callee()
57 define void @ghc_caller() {
58 call ghccc void @ghc_callee()
62 declare i32 @__gxx_personality_v0(...)