Пример #1
0
va_demo (int count, ...)
{
  int sum = 0;
  __builtin_ms_va_list ap;

  __builtin_ms_va_start (ap, count);
  while (count)
    {
      sum += __builtin_va_arg (ap, int);
      --count;
    }

  __builtin_ms_va_end (ap);
  return sum;
}
Пример #2
0
void f1(int a, ...) {
  __builtin_ms_va_list ap;
  __builtin_ms_va_start(ap, a); // expected-error {{'__builtin_ms_va_start' used in System V ABI function}}
}