bolt/deps/llvm-18.1.8/clang-tools-extra/pseudo/test/cxx/contextual-keywords.cpp
2025-02-14 19:21:04 +01:00

9 lines
368 B
C++

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