1 | struct Base { int x; }; |
---|---|
2 | struct Derived : public Base { int y; }; |
3 | |
4 | struct NonDerived { int z; }; |
5 | |
6 | int main() |
7 | { |
8 | Base base = {.x: 1111}; |
9 | |
10 | Derived derived; |
11 | derived.x = 2222; |
12 | derived.y = 3333; |
13 | |
14 | NonDerived nd = {.z: 4444}; |
15 | return 0; // Set break point at this line. |
16 | } |
17 |