1 ; RUN: opt < %s -inline -disable-output 2 3 define i32 @main() { 4 entry: 5 invoke void @__main( ) 6 to label %Call2Invoke unwind label %LongJmpBlkPre 7 8 Call2Invoke: ; preds = %entry 9 br label %LongJmpBlkPre 10 11 LongJmpBlkPre: ; preds = %Call2Invoke, %entry 12 %i.3 = phi i32 [ 0, %entry ], [ 0, %Call2Invoke ] ; <i32> [#uses=0] 13 ret i32 0 14 } 15 16 define void @__main() { 17 call void @__llvm_getGlobalCtors( ) 18 call void @__llvm_getGlobalDtors( ) 19 ret void 20 } 21 22 declare void @__llvm_getGlobalCtors() 23 24 declare void @__llvm_getGlobalDtors() 25 26