1 ; RUN: opt < %s -passes='print<postdomtree>' 2>&1 | FileCheck %s
3 @a = external global i32, align 4
7 store i32 5, ptr @a, align 4
8 %call = call i32 (...) @foo()
9 %tobool = icmp ne i32 %call, 0
10 br i1 %tobool, label %if.then, label %if.end
12 if.then: ; preds = %entry
15 loop: ; preds = %loop, %if.then
18 if.end: ; preds = %entry
19 store i32 6, ptr @a, align 4
25 ; CHECK: Inorder PostDominator Tree:
26 ; CHECK-NEXT: [1] <<exit node>>
28 ; CHECK-NEXT: [3] %if.then
29 ; CHECK: Roots: %if.end %loop