1; RUN: opt < %s -inline -disable-output 2 3define i32 @main() personality i32 (...)* @__gxx_personality_v0 { 4entry: 5 invoke void @__main( ) 6 to label %Call2Invoke unwind label %LongJmpBlkPre 7 8Call2Invoke: ; preds = %entry 9 br label %exit 10 11LongJmpBlkPre: ; preds = %Call2Invoke, %entry 12 %i.3 = phi i32 [ 0, %entry ] 13 %exn = landingpad {i8*, i32} 14 cleanup 15 br label %exit 16 17exit: 18 ret i32 0 19} 20 21define void @__main() { 22 call void @__llvm_getGlobalCtors( ) 23 call void @__llvm_getGlobalDtors( ) 24 ret void 25} 26 27declare i32 @__gxx_personality_v0(...) 28 29declare void @__llvm_getGlobalCtors() 30 31declare void @__llvm_getGlobalDtors() 32 33