1
0
mirror of https://github.com/ioacademy-jikim/debugging synced 2025-06-08 00:16:11 +00:00
2015-12-13 22:34:58 +09:00

27 lines
328 B
C

#include <stdlib.h>
typedef struct {
unsigned char c;
int i;
void *foo;
} S;
S *make_s (void);
int
main (int argc, char **argv)
{
S *s = make_s ();
if (s->c == 0 && s->i == 1 && s->foo == getenv ("BLAH"))
abort();
return 0;
}
S *
make_s (void)
{
S *res = malloc (sizeof (S));
res->c = 1;
return res;
}