2 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
4 ; While working on improvements to region info analysis, this test
5 ; case caused an incorrect region bb2 => bb3 to be detected.
7 define internal i8 @main_read() nounwind {
12 br i1 true, label %bb2, label %bb7
15 br i1 true, label %bb4, label %bb3
18 br i1 true, label %bb4, label %bb8
36 ; CHECK: [0] bb => <Function Return>
37 ; CHECK-NEXT: [1] bb1 => bb8
38 ; CHECK-NEXT: End region tree