Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
co-yield-syntax-07-varargs.C
blob: f0b568335e4769304dc8564a902c7cae80b09c64 [
file
] [
log
] [
blame
]
// { 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
;
}