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