aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitint-78.c
blob: 6c087575d45ecdb0f99b44d33c047428035b6440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR tree-optimization/113568 */
/* { dg-do compile { target bitint } } */
/* { dg-options "-O2 -std=c23" } */

signed char c;
#if __BITINT_MAXWIDTH__ >= 464
_BitInt(464) g;

void
foo (void)
{
  _BitInt(464) a[2] = {};
  _BitInt(464) b;
  while (c)
    {
      b = g + 1;
      g = a[0];
      a[0] = b;
    }
}
#endif