PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / ext / va-arg1.C
blobc0477adcb76a4f76e808b80cb13a6071d1d1b977
1 // PR c++/33462
3 struct A {};
5 void foo()
7   ++__builtin_va_arg (0, A);
8   // { dg-error "operand type is 'A'" "" {target *-*-*} "7" }
9   // { dg-error "first argument to 'va_arg' not of type 'va_list'" "" {target *-*-*} "7" }