1; RUN: opt < %s -postdomtree -analyze -enable-new-pm=0 | FileCheck %s
2; RUN: opt < %s -passes='print<postdomtree>' 2>&1 | FileCheck %s
3define internal void @f() {
4entry:
5  br i1 undef, label %bb35, label %bb3.i
6
7bb3.i:
8  br label %bb3.i
9
10bb35.loopexit3:
11  br label %bb35
12
13bb35:
14  ret void
15}
16
17;CHECK:Inorder PostDominator Tree:
18;CHECK-NEXT:  [1]  <<exit node>>
19;CHECK-NEXT:    [2] %bb35
20;CHECK-NEXT:      [3] %bb35.loopexit3
21;CHECK-NEXT:    [2] %entry
22;CHECK-NEXT:    [2] %bb3.i
23