22 lines · plain
1; RUN: opt < %s -passes='print<regions>'2 3define i32 @main() nounwind {4entry:5 br label %for.cond6 7test:8 br label %for.cond9 10for.cond: ; preds = %for.inc, %entry11 br i1 true, label %for.body, label %for.end12 13for.body: ; preds = %for.cond14 br label %for.inc15 16for.inc: ; preds = %for.body17 br label %for.cond18 19for.end: ; preds = %for.cond20 ret i32 021}22