source:
CIVL/mods/dev.civl.abc/examples/link/a_2.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 345 bytes | |
| Rev | Line | |
|---|---|---|
| [aad342c] | 1 | /* a2.c. To be linked with a0.c and a1.c. In this translation unit, |
| 2 | * struct S is complete, but is not compatible with the complete | |
| 3 | * struct S in a0.c. It is however compatible with the incomplete | |
| 4 | * struct S in a1.c. | |
| 5 | */ | |
| 6 | struct S {double y;}; | |
| 7 | int h(struct S *p); // defined in a_1.c | |
| 8 | int main() { | |
| 9 | struct S s = {.y=3.14}; | |
| 10 | return h(&s); | |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
