1 | // RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s |
2 | class Foo { |
3 | public: |
4 | }; |
5 | // CHECK: decl-specifier-seq~class-specifier := class-head { member-specification [recover=Brackets] } |
6 | // CHECK-NEXT: ├─class-head := class-key class-head-name |
7 | // CHECK-NEXT: │ ├─class-key~CLASS := tok[0] |
8 | // CHECK-NEXT: │ └─class-head-name~IDENTIFIER := tok[1] |
9 | // CHECK-NEXT: ├─{ := tok[2] |
10 | // CHECK-NEXT: ├─member-specification := access-specifier : |
11 | // CHECK-NEXT: │ ├─access-specifier~PUBLIC := tok[3] |
12 | // CHECK-NEXT: │ └─: := tok[4] |
13 | // CHECK-NEXT: └─} := tok[5] |
14 | |