1 // RUN: %clang_analyze_cc1 -std=c++14 %s \
2 // RUN: -analyzer-checker=debug.DumpDominators \
3 // RUN: -analyzer-checker=debug.DumpPostDominators \
4 // RUN: -analyzer-checker=debug.DumpControlDependencies \
5 // RUN: 2>&1 | FileCheck %s
9 namespace pr42041_unreachable_cfg_successor
{
20 } // end of namespace pr42041_unreachable_cfg_successor
22 // [B3 (ENTRY)] -> [B1] -> [B2] -> [B0 (EXIT)]
24 // CHECK: Control dependencies (Node#,Dependency#):
25 // CHECK-NEXT: Immediate dominance tree (Node#,IDom#):
30 // CHECK-NEXT: Immediate post dominance tree (Node#,IDom#):
36 void funcWithBranch() {
48 // [B5 (ENTRY)] -> [B4] -> [B3] -> [B2] -> [B1] -> [B0 (EXIT)]
51 // ------------------------------>
53 // CHECK: Control dependencies (Node#,Dependency#):
58 // CHECK-NEXT: Immediate dominance tree (Node#,IDom#):
65 // CHECK-NEXT: Immediate post dominance tree (Node#,IDom#):