6_5_2_5_01_compound_literal_flat_struct.c (162B)
1 struct I { 2 int a; 3 int b; 4 }; 5 6 struct O { 7 struct I i; 8 int c; 9 }; 10 11 int test_main(void) { 12 struct O o = (struct O){1, 2, 39}; 13 return o.i.a + o.i.b + o.c; 14 }
kitkit | |
| git clone https://git.ryansepassi.com/git/kit.git | |
| Log | Files | Refs | README |