1 | struct Int { |
---|---|
2 | int i; |
3 | }; |
4 | typedef Int Foo; |
5 | typedef Int *FooP; |
6 | typedef Foo Bar; |
7 | typedef Foo *BarP; |
8 | |
9 | int main() { |
10 | Int i = {.i: 42}; |
11 | Int *i_p = &i; |
12 | Int **i_pp = &i_p; |
13 | Int ***i_ppp = &i_pp; |
14 | |
15 | Foo f = i; |
16 | Foo *f_p = &f; |
17 | Foo **f_pp = &f_p; |
18 | Foo ***f_ppp = &f_pp; |
19 | |
20 | FooP fp = f_p; |
21 | FooP *fp_p = &fp; |
22 | FooP **fp_pp = &fp_p; |
23 | |
24 | Bar b = i; |
25 | Bar *b_p = &b; |
26 | Bar **b_pp = &b_p; |
27 | |
28 | BarP bp = b_p; |
29 | BarP *bp_p = &bp; |
30 | BarP **bp_pp = &bp_p; |
31 | return 0; // Set break point at this line. |
32 | } |
33 |