source: CIVL/mods/dev.civl.abc/examples/link/a.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: 385 bytes
Line 
1// ================ a_0.c ================
2struct S$TU0 {
3 int x;
4};
5int f(struct S$TU0* p)
6{
7 return p->x + 1;
8}
9// ================ a_1.c ================
10struct S;
11int f(struct S* p);
12int h(struct S* p) {
13 return f(p);
14}
15// ================ a_2.c ================
16struct S$TU2 {
17 double y;
18};
19int h(struct S$TU2* p);
20int main() {
21 struct S$TU2 s = {.y=3.14};
22 return h(&s);
23}
Note: See TracBrowser for help on using the repository browser.