blob: c3417e0bd823ff14ff1a7d76c7e9a0a41b523d98 [file] [log] [blame]
// RUN: rm -f %t
// RUN: clang-ast-dump "%s" -f test_namespace::TheClass::theMethod -- -c > %t 2>&1
// RUN: FileCheck --input-file=%t %s
// CHECK: <CXXMethod ptr="0x{{[0-9a-f]+}}" name="theMethod" prototype="true">
// CHECK: <ParmVar ptr="0x{{[0-9a-f]+}}" name="x" initstyle="c">
// CHECK: (CompoundStmt
// CHECK-NEXT: (ReturnStmt
// CHECK-NEXT: (BinaryOperator
namespace test_namespace {
class TheClass {
public:
int theMethod(int x) {
return x + x;
}
};
}