summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/builtin11.C
blob: 2749671fb324d0a05c22cbe7cf6e0a05e3394107 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/40138
// { dg-options "-Wall" }

void foo(int i, ...)
{
  V v;				// { dg-error "not declared|expected" }
  __builtin_va_start(v, i);	// { dg-error "not declared" }
  i = __builtin_va_arg(v, int);
}