Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
var-args1.C
blob: 35deb096a6575617f9e80baa429b0dfad2be58e8 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
#include
<stdarg.h>
void
foo
(
int
,
...)
{
va_list va
;
int
i
;
i
=
va_arg
(
va
,
int
&);
/* { dg-error "cannot receive" } */
}