aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr101858.c
blob: 61fcca60982cfdf36128364eacb53b4131fb2fc2 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-w" } */

int foo(int a)
{
  if (a < (int*)((__INTPTR_TYPE__)1 << a))
    a = 0;
  return a;
}