Fix gimplification of ordering comparisons of arrays of bytes
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr52406.c
blob5579d0943ae24e3a703597ccd7300436e229eca1
1 /* { dg-do run } */
3 extern void abort (void);
4 struct { int f1; } a[2];
6 int *b, *const k = &a[1].f1;
7 static int **c = &b;
9 int e, f, d;
11 int
12 main ()
14 int **l = &b;
15 *l = k;
16 for (; d <= 0; d++)
18 int *j = &e;
19 **c = 1;
20 *l = k;
21 *k ^= 0;
22 f = **l;
23 *j = f;
25 if (e != 1)
26 abort ();
27 return 0;