1 #include <stdlib.h> 2 3 typedef struct { 4 unsigned char c; 5 int i; 6 void *foo; 7 } S; 8 9 S *make_s (void); 10 11 int 12 main (int argc, char **argv) 13 { 14 S *s = make_s (); 15 if (s->c == 0 && s->i == 1 && s->foo == getenv ("BLAH")) 16 abort(); 17 return 0; 18 } 19 20 S * 21 make_s (void) 22 { 23 S *res = malloc (sizeof (S)); 24 res->c = 1; 25 return res; 26 } 27