aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20120917-1.c
blob: b469514fa09cb94f0b547ae8474b3ea20d431929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
typedef long long curl_off_t;
int tool_seek_cb(void *userdata, curl_off_t offset, int whence)
{
  if(offset > 0x7FFFFFFFLL - 0x1LL) 
{
    curl_off_t left = offset;
    while(left) 
{
      long step = (left > 0x7FFFFFFFLL - 0x1LL) ? 2147483647L - 1L : (long)left;
      left -= step;
    }
  }
}