forked from OSchip/llvm-project
[pseudo]Pull out the operator< test, NFC
Fix the review comment in https://reviews.llvm.org/D125479.
This commit is contained in:
parent
cf88150c48
commit
28eeea1e27
|
@ -0,0 +1,12 @@
|
|||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
bool operator<();
|
||||
// CHECK: translation-unit~simple-declaration := decl-specifier-seq init-declarator-list ;
|
||||
// CHECK-NEXT: ├─decl-specifier-seq~BOOL
|
||||
// CHECK-NEXT: ├─init-declarator-list~noptr-declarator := noptr-declarator parameters-and-qualifiers
|
||||
// CHECK-NEXT: │ ├─noptr-declarator~operator-function-id := OPERATOR operator-name
|
||||
// CHECK-NEXT: │ │ ├─OPERATOR
|
||||
// CHECK-NEXT: │ │ └─operator-name~<
|
||||
// CHECK-NEXT: │ └─parameters-and-qualifiers := ( )
|
||||
// CHECK-NEXT: │ ├─(
|
||||
// CHECK-NEXT: │ └─)
|
||||
// CHECK-NEXT: └─;
|
|
@ -21,15 +21,3 @@ void foo() {
|
|||
// CHECK-NEXT: │ └─ptr-declarator~IDENTIFIER := tok[7]
|
||||
// CHECK-NEXT: └─; := tok[8]
|
||||
}
|
||||
|
||||
bool operator<();
|
||||
// CHECK: declaration~simple-declaration := decl-specifier-seq init-declarator-list ;
|
||||
// CHECK-NEXT: ├─decl-specifier-seq~BOOL
|
||||
// CHECK-NEXT: ├─init-declarator-list~noptr-declarator := noptr-declarator parameters-and-qualifiers
|
||||
// CHECK-NEXT: │ ├─noptr-declarator~operator-function-id := OPERATOR operator-name
|
||||
// CHECK-NEXT: │ │ ├─OPERATOR
|
||||
// CHECK-NEXT: │ │ └─operator-name~<
|
||||
// CHECK-NEXT: │ └─parameters-and-qualifiers := ( )
|
||||
// CHECK-NEXT: │ ├─(
|
||||
// CHECK-NEXT: │ └─)
|
||||
// CHECK-NEXT: └─;
|
||||
|
|
Loading…
Reference in New Issue