summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr31605.c
blob: 12a57ac1ea68a28835c8b8e90c632d8b6c7901e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
void put_field (unsigned int start, unsigned int len)
{
  int cur_bitshift = ((start + len) % 8) - 8;
  if (cur_bitshift > -8)
    exit (0);
}

int
main ()
{
  put_field (0, 1);
  abort ();
}