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