aboutsummaryrefslogtreecommitdiff
path: root/test/Tooling/clang-ast-dump.cpp
blob: a22fffdfe243906cedba33819adb0a1f1159cedc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RUN: clang-ast-dump "%s" -f test_namespace::TheClass::theMethod -- -c 2>&1|FileCheck %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;
  }
};

}

// FIXME: This is incompatible to -fms-compatibility.
// XFAIL: win32