[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang-tools-extra / pseudo / test / glr-variant-start.cpp
blob1bd073707353b82386d2e1086887c1286a0850ff
1 // RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --start-symbol=statement-seq --print-forest | FileCheck %s
3 a + a;
4 // CHECK: statement-seq~expression-statement := expression ;
5 // CHECK-NEXT: ├─expression~additive-expression := additive-expression + multiplicative-expression
6 // CHECK-NEXT: │ ├─additive-expression~IDENTIFIER :=
7 // CHECK-NEXT: │ ├─+ :=
8 // CHECK-NEXT: │ └─multiplicative-expression~IDENTIFIER :=
9 // CHECK-NEXT: └─; :=