re PR c++/70808 (Spurious -Wzero-as-null-pointer-constant for nullptr_t)
[official-gcc.git] / gcc / testsuite / g++.dg / warn / var-args1.C
blob35deb096a6575617f9e80baa429b0dfad2be58e8
1 /* { dg-do compile } */
3 #include <stdarg.h>
5 void foo(int, ...)
7     va_list va;
8     int i;
9     i = va_arg(va, int&); /* { dg-error "cannot receive" } */