Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git] / llvm / test / Transforms / LoopSimplify / 2007-10-28-InvokeCrash.ll
blob23166b9add142c43498577645802c2544fda12bb
1 ; RUN: opt < %s -passes=loop-simplify -disable-output
2 ; PR1752
3 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-s0:0:64-f80:32:32"
4 target triple = "i686-pc-mingw32"
6 define void @func() personality ptr @__gxx_personality_v0 {
7 bb_init:
8         br label %bb_main
10 bb_main:
11         br label %invcont17.normaldest
13 invcont17.normaldest917:                ; No predecessors!
14         %tmp23 = invoke i32 @foo()
15                         to label %invcont17.normaldest unwind label %invcont17.normaldest.normaldest
17 invcont17.normaldest:           ; preds = %invcont17.normaldest917, %bb_main
18         br label %bb_main
20 invcont17.normaldest.normaldest:                ; No predecessors!
21         %exn = landingpad {ptr, i32}
22                  catch ptr null
23         store i32 %tmp23, ptr undef
24         br label %bb_main
27 declare i32 @foo()
29 declare i32 @__gxx_personality_v0(...)