Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20010123-1.c

raw
1 extern void abort ();
2 extern void exit (int);
3
4 struct s
5 {
6 int value;
7 char *string;
8 };
9
10 int main (void)
11 {
12 int i;
13 for (i = 0; i < 4; i++)
14 {
15 struct s *t = & (struct s) { 3, "hey there" };
16 if (t->value != 3)
17 abort();
18 t->value = 4;
19 if (t->value != 4)
20 abort();
21 }
22 exit (0);
23 }