1// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s
2bool operator<();
3// CHECK: translation-unit~simple-declaration := decl-specifier-seq init-declarator-list ;
4// CHECK-NEXT: ├─decl-specifier-seq~BOOL
5// CHECK-NEXT: ├─init-declarator-list~noptr-declarator := noptr-declarator parameters-and-qualifiers
6// CHECK-NEXT: │ ├─noptr-declarator~operator-function-id := OPERATOR operator-name
7// CHECK-NEXT: │ │ ├─OPERATOR
8// CHECK-NEXT: │ │ └─operator-name~<
9// CHECK-NEXT: │ └─parameters-and-qualifiers := ( )
10// CHECK-NEXT: │ ├─(
11// CHECK-NEXT: │ └─)
12// CHECK-NEXT: └─;
13

source code of clang-tools-extra/pseudo/test/cxx/keyword.cpp