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

#if __BITINT_MAXWIDTH__ >= 135
_BitInt(135) i;
#else
_BitInt(63) i;
#endif

void *
foo (void)
{
  void *ret = 0;
  if (i & 1)
    ret = (void *) 1;
  return ret;
}