(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
coroutines/
co-yield-syntax-07-varargs.C
//  { dg-additional-options "-fsyntax-only -w" }

#include "coro.h"

int
bar (int x, ...)
{
  co_yield 1; // { dg-error "cannot be used in a varargs function" }
}

int main (int ac, char *av[]) {
  bar (5, ac);
  return 0;
}