| ; RUN: opt < %s -domtree -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-OLDPM |
| ; RUN: opt < %s -disable-output -passes='print<domtree>' 2>&1 | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-NEWPM |
| ; CHECK-OLDPM-LABEL: 'Dominator Tree Construction' for function 'test1': |
| ; CHECK-NEWPM-LABEL: DominatorTree for function: test1 |
| br i1 undef, label %a, label %b |
| br i1 undef, label %d, label %e |
| ; CHECK-OLDPM-LABEL: 'Dominator Tree Construction' for function 'test2': |
| ; CHECK-NEWPM-LABEL: DominatorTree for function: test2 |
| br i1 undef, label %a, label %c |
| br i1 undef, label %d, label %ret |
| br i1 undef, label %a, label %ret |