aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.dg/dfp/pr35739.c
blob: d4e1839026e02325b08ea22f6fdf5756a5f4639a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR c/35739 */
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O -fpreprocessed -fmudflap" } */

_Decimal128
foo (int n, ...)
{
  int i;
  _Decimal128 j = 0;
  __builtin_va_list ap;
  __builtin_va_start (ap, n);
  for (i = 0; i < n; i++)
    j += __builtin_va_arg (ap, _Decimal128);
  __builtin_va_end (ap);
  return j;
}