1 ; RUN: opt -mtriple=x86_64-linux-gnu -dwarf-eh-prepare -S %s | FileCheck %s
2 ; RUN: opt -mtriple=x86_64-linux-gnu -passes=dwarf-eh-prepare -S %s | FileCheck %s
6 ; Check that 'resume' is lowered to _Unwind_Resume which marked as 'noreturn'
7 define void @pluto() align 2 personality ptr @hoge {
8 ;CHECK: call void @_Unwind_Resume(ptr %exn.obj) [[A:#.*]]
9 ;CHECK: attributes [[A]] = { noreturn }
12 to label %bb1 unwind label %bb2
18 %tmp = landingpad { ptr, i32 }
20 resume { ptr, i32 } %tmp