1 | struct foo |
2 | { |
3 | int a; |
4 | int b; |
5 | int c; |
6 | int d; |
7 | int e; |
8 | int f; |
9 | int g; |
10 | int h; |
11 | int i; |
12 | int j; |
13 | int k; |
14 | int l; |
15 | int m; |
16 | int n; |
17 | int o; |
18 | int p; |
19 | int q; |
20 | int r; |
21 | |
22 | foo(int X) : |
23 | a(X), |
24 | b(X+1), |
25 | c(X+3), |
26 | d(X+5), |
27 | e(X+7), |
28 | f(X+9), |
29 | g(X+11), |
30 | h(X+13), |
31 | i(X+15), |
32 | j(X+17), |
33 | k(X+19), |
34 | l(X+21), |
35 | m(X+23), |
36 | n(X+25), |
37 | o(X+27), |
38 | p(X+29), |
39 | q(X+31), |
40 | r(X+33) {} |
41 | }; |
42 | |
43 | struct wrapint |
44 | { |
45 | int x; |
46 | wrapint(int X) : x(X) {} |
47 | }; |
48 | |
49 | struct wrapfoo |
50 | { |
51 | foo *ptr; |
52 | }; |
53 | |
54 | int main() |
55 | { |
56 | foo f00_1(1); |
57 | foo *f00_ptr = new foo(12); |
58 | wrapfoo wrapper{.ptr: f00_ptr}; |
59 | |
60 | f00_1.a++; // Set break point at this line. |
61 | |
62 | wrapint test_cast('A' + |
63 | 256*'B' + |
64 | 256*256*'C'+ |
65 | 256*256*256*'D'); |
66 | // Set cast break point at this line. |
67 | test_cast.x = 'Q' + |
68 | 256*'X' + |
69 | 256*256*'T'+ |
70 | 256*256*256*'F'; |
71 | return 0; // Set second cast break point at this line. |
72 | } |
73 | |