source: CIVL/mods/dev.civl.abc/examples/link/a_2.c

main
Last change on this file was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5664 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 345 bytes
Line 
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 */
6struct S {double y;};
7int h(struct S *p); // defined in a_1.c
8int main() {
9 struct S s = {.y=3.14};
10 return h(&s);
11}
Note: See TracBrowser for help on using the repository browser.