6_5_15_05_cond_const_aggregate_compound.c (178B)
1 typedef struct Pair { 2 int a; 3 int b; 4 } Pair; 5 6 int test_main(void) { 7 const Pair p = {7, 11}; 8 const Pair* pp = &p; 9 Pair r = pp ? *pp : (Pair){1, 2}; 10 return r.a + r.b; 11 }
kitkit | |
| git clone https://git.ryansepassi.com/git/kit.git | |
| Log | Files | Refs | README |