aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitint-107.c
blob: a3f5f534088f39f4f5ad0354bd808432b54f386a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR tree-optimization/115544 */
/* { dg-do compile { target bitint } } */
/* { dg-options "-O -fno-tree-fre -fno-tree-ccp -fno-tree-forwprop" } */

#if __BITINT_MAXWIDTH__ >= 129
typedef _BitInt(129) B;
#else
typedef _BitInt(63) B;
#endif
B a, b;

int
foo (void)
{
  return __builtin_mul_overflow (a, 1, &b);
}