source:
CIVL/mods/dev.civl.abc/examples/c/pointsToAnalysis/structFieldsWithArrow.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 239 bytes | |
| Line | |
|---|---|
| 1 | struct H { |
| 2 | int *c; |
| 3 | int *d; |
| 4 | }; |
| 5 | |
| 6 | struct T { |
| 7 | int *a; |
| 8 | int *b; |
| 9 | struct H *h; |
| 10 | }; |
| 11 | |
| 12 | int main() { |
| 13 | struct T t, *t2; |
| 14 | struct H h; |
| 15 | int a, b, c, d; |
| 16 | |
| 17 | t.h = &h; |
| 18 | t2 = &t; |
| 19 | t2->a = &a; |
| 20 | t2->b = &b; |
| 21 | t2->h->c = &c; |
| 22 | t2->h->d = &d; |
| 23 | } |
Note:
See TracBrowser
for help on using the repository browser.
