c++: Implement for namespace statics CWG 2867 - Order of initialization for structure...
[official-gcc.git] / gcc / testsuite / gcc.dg / pr113756.c
blob14442206f8ab6b9e943f22daeeae991bd276050f
1 /* PR tree-optimization/113756 */
2 /* { dg-do run { target int32plus } } */
3 /* { dg-options "-O2" } */
5 int d, e, i, k, l = -8;
6 signed char h, j;
8 int
9 bar (int n, int o, int p3)
11 int a = o - p3, b = n - p3, c = a + b, f = -b, g = c < 0 ? -c : c;
12 return a <= f && a <= g ? o : p3;
15 void
16 foo (int *n, unsigned short o)
18 unsigned p = 8896;
19 for (; e >= 0; e--)
20 p = 5377;
21 for (; h <= 0; h++)
22 for (; j <= 0; j++)
24 *n = 1611581749;
25 i = bar (34, p - 5294, *n - 1611581687);
26 k = i + p + 65535 + o + *n - 1611718251;
27 if (k != 0)
28 __builtin_abort ();
32 int
33 main ()
35 foo (&l, l);