aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/va-arg-pack-3.C
blob: 0e8203ca173ae362fcacc39b0bdc6e573d10c7a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR middle-end/100898

int a;
int bar (int, ...);

static inline __attribute__((always_inline)) int
foo (...)
{
  while (a)
    return bar (0, __builtin_va_arg_pack ());
  return 0;
}

void
baz (void)
{
  foo ();
}