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

#if __BITINT_MAXWIDTH__ >= 1025
_BitInt (1025) b;
#endif

void
foo (long x)
{
#if __BITINT_MAXWIDTH__ >= 1025
  b += (unsigned _BitInt (255)) x;
#else
  (void) x;
#endif
}