1 | // RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s |
---|---|
2 | // Verify that the contextual-{final,override} rules are guarded conditionally, |
3 | // No ambiguous parsing for the virt-specifier. |
4 | class Foo { |
5 | void foo1() override; |
6 | // CHECK: virt-specifier-seq~IDENTIFIER := tok[7] |
7 | void foo2() final; |
8 | // CHECK: virt-specifier-seq~IDENTIFIER := tok[13] |
9 | }; |
10 |