aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/cpp/static_methods/main.cpp
blob: 332fca62f4bef80cec1433e84e07c881fba20746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct A {
public:
  static int getStaticValue() { return 5; }
  int getMemberValue() { return a; }
  int a;
};

int main()
{
  A a;
  a.a = 3;
  return A::getStaticValue() + a.getMemberValue(); // Break here
}