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