1 // RUN: clang-pseudo -grammar=cxx -source=%s --start-symbol=statement-seq --print-forest | FileCheck %s
3 // Verify the else should belong to the nested if statement
4 if (true) if (true) {} else {}
6 // CHECK: statement-seq~selection-statement := IF ( condition ) statement
9 // CHECK-NEXT: ├─condition~TRUE
11 // CHECK-NEXT: └─statement~selection-statement
14 // CHECK-NEXT: ├─condition~TRUE
16 // CHECK-NEXT: ├─statement~compound-statement := { }
20 // CHECK-NEXT: └─statement~compound-statement := { }