1 | struct A { |
---|---|
2 | short m_a; |
3 | static long s_b; |
4 | static int s_c; |
5 | |
6 | long access() { |
7 | return m_a + s_b + s_c; // stop in member function |
8 | } |
9 | }; |
10 | |
11 | long A::s_b = 2; |
12 | int A::s_c = 3; |
13 | |
14 | int main() { |
15 | A my_a; |
16 | my_a.m_a = 1; |
17 | |
18 | int arr[2]{0}; |
19 | |
20 | my_a.access(); // stop in main |
21 | return 0; |
22 | } |
23 |