blob: c0477adcb76a4f76e808b80cb13a6071d1d1b977 [file] [log] [blame]
// PR c++/33462
struct A {};
void foo()
{
++__builtin_va_arg (0, A);
// { dg-error "operand type is 'A'" "" {target *-*-*} "7" }
// { dg-error "first argument to 'va_arg' not of type 'va_list'" "" {target *-*-*} "7" }
}