summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/va-arg1.C
blob: 079db2e5c6e1bfcd1a6c3543da2bcd31c08aeb43 (plain)
1
2
3
4
5
6
7
8
// PR c++/33462

struct A {};

void foo()
{
  ++__builtin_va_arg(0, A); // { dg-error "'\\+\\+va_arg\\(0, A\\)'" }
}