2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20041104-1.c
blobb4d359d1e7bf070cc7ed73b31109af33af2c68ea
1 /* This testcase exposed the same bug as PR 15342. */
2 /* { dg-options "-O2 -frename-registers -fno-schedule-insns" } */
4 void *memcpy (void *, const void *, __SIZE_TYPE__);
6 void f (int n, int (*x)[4])
8 while (n--)
10 int f = x[0][0];
11 if (f <= 0)
12 memcpy (&x[1], &x[0], sizeof (x[0]));
13 else
14 memcpy (&x[f], &x[0], sizeof (x[0]));
15 f = x[0][2];
16 x[0][1] = f;