source: CIVL/mods/dev.civl.abc/examples/compound3.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: 225 bytes
RevLine 
[aad342c]1#include<assert.h>
2
3struct T {
4 int x;
5 int y;
6 struct T2 {
7 int x;
8 int y;
9 } z;
10};
11
12int main() {
13 struct T t = {.y=2, {.x=3, 4, 5}};
14
15 assert(t.x == 0 && t.y == 2 && t.z.x == 3 && t.z.y == 5);
16 return t.z.x;
17}
Note: See TracBrowser for help on using the repository browser.