source:
CIVL/mods/dev.civl.abc/examples/link/a_1.c@
bb03188
| Last change on this file since bb03188 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 358 bytes | |
| Rev | Line | |
|---|---|---|
| [aad342c] | 1 | /* a_1.c. To be linked with a_0.c and a_2.c. In this translation |
| 2 | * unit, struct S is incomplete, and is therefore compatible with the | |
| 3 | * struct S in a_0 and the struct S in a_2, even though struct S in | |
| 4 | * a_0 is incompatible with that in a_2. | |
| 5 | */ | |
| 6 | struct S; | |
| 7 | int f(struct S *p); // defined in a_0.c | |
| 8 | int h(struct S *p) { // called from a_2.c | |
| 9 | return f(p); | |
| 10 | } |
Note:
See TracBrowser
for help on using the repository browser.
