1 ; RUN: opt -regions < %s 2 ; RUN: opt < %s -passes='print<regions>' 3 4 define i32 @main() nounwind { 5 entry: 6 br label %for.cond 7 8 test: 9 br label %for.cond 10 11 for.cond: ; preds = %for.inc, %entry 12 br i1 true, label %for.body, label %for.end 13 14 for.body: ; preds = %for.cond 15 br label %for.inc 16 17 for.inc: ; preds = %for.body 18 br label %for.cond 19 20 for.end: ; preds = %for.cond 21 ret i32 0 22 } 23