PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr64255.c
blob447638af35f17d942a899531455e09d1ae52a4f3
1 /* PR rtl-optimization/64255 */
3 __attribute__((noinline, noclone)) void
4 bar (long i, unsigned long j)
6 if (i != 1 || j != 1)
7 __builtin_abort ();
10 __attribute__((noinline, noclone)) void
11 foo (long i)
13 unsigned long j;
15 if (!i)
16 return;
17 j = i >= 0 ? (unsigned long) i : - (unsigned long) i;
18 if ((i >= 0 ? (unsigned long) i : - (unsigned long) i) != j)
19 __builtin_abort ();
20 bar (i, j);
23 int
24 main ()
26 foo (1);
27 return 0;