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

_BitInt(8) b;
_Bool c;
#if __BITINT_MAXWIDTH__ >= 8445
_BitInt(8445) a;

void
foo (_BitInt(4058) d)
{
  c = __builtin_add_overflow (a, 0ULL, &d);
  __builtin_add_overflow (a, 0ULL, &d);
  b = d;
}
#endif