Debian Codegraph @

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

raw
1 void abort (void);
2 void exit (int);
3
4 struct s {
5 char text[11];
6 int flag;
7 } cell;
8
9 int
10 check (struct s p)
11 {
12 if (p.flag != 99)
13 return 1;
14 return __builtin_strcmp (p.text, "0123456789");
15 }
16
17 int
18 main (void)
19 {
20 cell.flag = 99;
21 __builtin_strcpy (cell.text, "0123456789");
22
23 if (check (cell))
24 abort();
25 exit (0);
26 }