1 | // RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s |
2 | void foo2(int, ...); |
3 | // CHECK: translation-unit~simple-declaration := decl-specifier-seq init-declarator-list ; |
4 | // CHECK-NEXT: ├─decl-specifier-seq~VOID := |
5 | // CHECK-NEXT: ├─init-declarator-list~noptr-declarator := noptr-declarator parameters-and-qualifiers |
6 | // CHECK-NEXT: │ ├─noptr-declarator~IDENTIFIER := |
7 | // CHECK-NEXT: │ └─parameters-and-qualifiers := ( parameter-declaration-clause [recover=Brackets] ) |
8 | // CHECK-NEXT: │ ├─( := |
9 | // CHECK-NEXT: │ ├─parameter-declaration-clause := parameter-declaration-list , ... |
10 | // CHECK-NEXT: │ │ ├─parameter-declaration-list~INT := |
11 | // CHECK-NEXT: │ │ ├─, := |
12 | // CHECK-NEXT: │ │ └─... := |
13 | // CHECK-NEXT: │ └─) := |
14 | // CHECK-NEXT: └─; := |
15 | |