1class A {
2public:
3 static int a;
4 int b;
5};
6
7class B {
8public:
9 static int a;
10 int b;
11};
12
13struct C {
14 static int a;
15};
16
17int A::a = 1111;
18int B::a = 2222;
19int C::a = 3333;
20int a = 4444;
21
22int main() // break here
23{
24 return 0;
25}
26

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of lldb/test/API/lang/cpp/scope/main.cpp