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.
4class 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

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