Fix gimplification of ordering comparisons of arrays of bytes
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr105537.c
blob2e4825c47206609c17fe3ce3560e6715aded085c
1 /* { dg-do compile } */
2 /* { dg-additional-options "-ffast-math -fsignaling-nans -fvar-tracking-assignments -fno-move-loop-stores -ftree-loop-distribution" } */
4 int n;
6 double
7 ext1 (int);
9 void
10 ext2 (double);
12 int
13 sum (int v1, int v2)
15 return v1 + v2;
18 void
19 bar (void)
21 ext2 (ext1 (n));
24 __attribute__ ((optimize ("-O3"))) void
25 foo (int *x)
27 static int i;
29 bar ();
30 for (i = 0; i != 2; i = sum (i, 1))
31 n = *x = 0;
34 /* { dg-message "other options take precedence" "" { target *-*-* } 0 } */