aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/warn/var-args1.C
blob: 9bd84a7dd55ae934e03288cd3f7c9da45699df28 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */

#include <stdarg.h>

void foo(int, ...)
{
    va_list va;
    int i;
    i = va_arg(va, int&); /* { dg-error "cannot receive objects" } */
}