source:
CIVL/mods/dev.civl.abc/examples/c/pointsToAnalysis/structFieldArray.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 181 bytes | |
| Line | |
|---|---|
| 1 | struct T { |
| 2 | int a[10][10]; |
| 3 | int b[10]; |
| 4 | struct T * t; |
| 5 | }; |
| 6 | |
| 7 | int main() { |
| 8 | struct T s, s2; |
| 9 | int *p, (*q)[10]; |
| 10 | |
| 11 | s.t = &s2; |
| 12 | p = s.b; |
| 13 | q = s.a; |
| 14 | q = s.t->a; |
| 15 | p = s.t->b; |
| 16 | } |
| 17 |
Note:
See TracBrowser
for help on using the repository browser.
