Fix gimplification of ordering comparisons of arrays of bytes
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr96522.c
blob2f55d1aeb4d5e58aa8db59503031ba4e5fc0616f
1 /* { dg-do run } */
2 /* { dg-additional-options "-fno-tree-pta" } */
4 __attribute__((noipa)) void
5 bar (void)
7 volatile int v = 1;
8 if (v)
9 __builtin_abort ();
12 __attribute__((noipa)) void
13 baz (void)
17 __attribute__((noipa)) void
18 foo (int n, double *p, double *x)
20 if (n < 10 && p != 0)
21 for (int i = 0; i < 10; i++)
22 if (x[0] < p[i])
23 x[i] = 0;
24 if (p != 0)
25 bar ();
26 else
27 baz ();
30 int
31 main ()
33 double arr[10];
34 foo (1000, 0, arr);
35 return 0;