1 //  { dg-additional-options "-fsyntax-only -w" }
2 
3 #include "coro.h"
4 
5 int
bar(int x,...)6 bar (int x, ...)
7 {
8   co_await coro::suspend_always{}; // { dg-error "cannot be used in a varargs function" }
9 }
10 
main(int ac,char * av[])11 int main (int ac, char *av[]) {
12   bar (5, ac);
13   return 0;
14 }
15