blob: 0aea17a1db8a078dfe0c7a2c9040bff56b17d461 [file] [log] [blame]
// { dg-additional-options "-fsyntax-only -w" }
#include "coro.h"
int
bar (int x, ...)
{
co_return 1; // { dg-error "cannot be used in a varargs function" }
}
int main (int ac, char *av[]) {
bar (5, ac);
return 0;
}