summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/shift.c
blob: 1ed1879c616f76b374a32682fbea932d00e498b1 (plain)
1
2
3
4
5
6
7
foo (a)
{
  if (a >= 0)
    return (unsigned) a << 10;
  else
    return (int) a << 10;
}