aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/cpp/static_members/main.cpp
blob: df11c4c5cf7eccf3d4d3552dd554f31301059d2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
struct A {
  short m_a;
  static long s_b;
  static int s_c;

  long access() {
    return m_a + s_b + s_c; // stop in member function
  }
};

long A::s_b = 2;
int A::s_c = 3;

int main() {
  A my_a;
  my_a.m_a = 1;

  int arr[2]{0};

  my_a.access(); // stop in main
  return 0;
}