[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang-tools-extra / pseudo / test / cxx / recovery-init-list.cpp
blob38216ad9647720c4cd142474bcbaa1a76b071570
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]