1 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
3 ; We should not crash if there are some bbs that are not reachable.
8 notintree: ; No predecessors!
11 for.pre: ; preds = %entry
14 for: ; preds = %for.inc, %for.pre
15 %indvar = phi i64 [ 0, %for.pre ], [ %indvar.next, %for.inc ]
16 %exitcond = icmp ne i64 %indvar, 200
17 br i1 %exitcond, label %for.inc, label %ret
19 for.inc: ; preds = %for
20 %indvar.next = add i64 %indvar, 1
23 ret: ; preds = %for, %notintree
27 ; CHECK: [0] entry => <Function Return>
28 ; CHECK: [1] for => ret