1 | // RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s |
2 | auto x = { complete garbage }; |
3 | // CHECK: translation-unit~simple-declaration |
4 | // CHECK-NEXT: ├─decl-specifier-seq~AUTO := tok[0] |
5 | // CHECK-NEXT: ├─init-declarator-list~init-declarator |
6 | // CHECK-NEXT: │ ├─non-function-declarator~IDENTIFIER := tok[1] |
7 | // CHECK-NEXT: │ └─initializer~brace-or-equal-initializer |
8 | // CHECK-NEXT: │ ├─= := tok[2] |
9 | // CHECK-NEXT: │ └─initializer-clause~braced-init-list |
10 | // CHECK-NEXT: │ ├─{ := tok[3] |
11 | // CHECK-NEXT: │ ├─initializer-list := <opaque> |
12 | // CHECK-NEXT: │ └─} := tok[6] |
13 | // CHECK-NEXT: └─; := tok[7] |
14 | |