aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitint-10.c
blob: d5e9c9772335f9c1106015f0ae021bcd861f2484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR c/102989 */
/* { dg-do compile { target { bitint && dfp } } } */
/* { dg-options "-O2 -std=c23 -pedantic-errors" } */

#if __BITINT_MAXWIDTH__ >= 129
void
foo (_BitInt(129) *x, _Decimal64 *y)
{
  x[0] = y[0];
  y[1] = x[1];
}
#endif

/* _Decimal* <-> _BitInt conversions are unsupported for now.  */
/* { dg-prune-output "unsupported conversion between" } */