aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr107176.c
blob: c4f7b6d7336c66e9a294dae0b2adb100e9712c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do run } */

__INT32_TYPE__ a;
__INT64_TYPE__ b;
static inline __INT64_TYPE__ c(__UINT32_TYPE__ d)
{
  return d;
}
static inline void e(__INT32_TYPE__ d)
{
  a = d;
}
int main()
{
  b = 0;
  for (; b < 1; b = c(b - 90) + 90 + 1)
    ;
  e(b >> 2);
  if (a != 1073741824)
    __builtin_abort();
  return 0;
}