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

int __attribute__((noipa))
foo (unsigned char b)
{
  int c = 0;

  while (b) {
      b >>= 1;
      c++;
  }

  return c;
}

int main()
{
  if (foo(0) != 0)
    __builtin_abort ();
  return 0;
}