1 | // RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s |
---|---|
2 | |
3 | // Similiar to declarator-function.cpp, but for member functions. |
4 | class Foo { |
5 | void foo() {}; |
6 | // CHECK-NOT: member-declarator := declarator brace-or-equal-initializer |
7 | // CHECK: member-declaration~function-definition := decl-specifier-seq function-declarator function-body |
8 | // CHECK-NOT: member-declarator := declarator brace-or-equal-initializer |
9 | }; |
10 |