OSDN Git Service

PR middle-end/51761
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / pr51077.c
1 /* PR middle-end/51077 */
2
3 struct S { unsigned char s, t[256]; };
4
5 void
6 foo (const struct S *x, struct S *y, int z)
7 {
8   int i;
9   for (i = 0; i < 8; i++)
10     {
11       const struct S *a = &x[i];
12       __builtin___memcpy_chk (y->t, a->t, z, __builtin_object_size (y->t, 0));
13       y = (struct S *) &y->t[z];
14     }
15 }