Home | History | Annotate | Download | only in WinEH
      1 ; RUN: opt -winehprepare < %s
      2 
      3 target triple = "x86_64-pc-windows-msvc"
      4 
      5 define void @test1() personality i32 (...)* @__CxxFrameHandler3 {
      6 entry:
      7   invoke void @f(i32 1)
      8      to label %exit unwind label %cleanup
      9 
     10 cleanup:
     11   %cp = cleanuppad within none []
     12   call void asm sideeffect "", ""()
     13   cleanupret from %cp unwind to caller
     14 
     15 exit:
     16   ret void
     17 }
     18 
     19 ; CHECK-LABEL: define void @test1(
     20 ; CHECK:      %[[cp:.*]] = cleanuppad within none []
     21 ; CHECK-NEXT: call void asm sideeffect "", ""()
     22 ; CHECK-NEXT: cleanupret from %[[cp]] unwind to caller
     23 
     24 declare void @f(i32)
     25 
     26 declare i32 @__CxxFrameHandler3(...)
     27