1; RUN: opt < %s -postdomtree -analyze -enable-new-pm=0 | FileCheck %s
2; RUN: opt < %s -passes='print<postdomtree>' 2>&1 | FileCheck %s
3
4; Function Attrs: nounwind ssp uwtable
5define void @foo() {
6  br label %1
7
8; <label>:1                                       ; preds = %0, %1
9  br label %1
10                                                  ; No predecessors!
11  ret void
12}
13
14; CHECK: Inorder PostDominator Tree:
15; CHECK-NEXT:   [1]  <<exit node>>
16; CHECK-NEXT:     [2] %2
17; CHECK-NEXT:     [2] %1
18; CHECK-NEXT:       [3] %0
19