aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitint-110.c
blob: 4ba2f93856e5c72f91a138c46dddcc574784e5df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR middle-end/116898 */
/* { dg-do compile { target bitint575 } } */
/* { dg-options "-O -finstrument-functions -fnon-call-exceptions" } */

_BitInt(127) a;
_BitInt(511) b;

void
foo (_BitInt(31) c)
{
  do
    {
      c %= b;
again:
    }
  while (c);
  a /= 0;		/* { dg-warning "division by zero" } */
  c -= a;
  goto again;
}