Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / abi / empty21.C
blob3b2e3b836b1800acd60df645e45e902ca7191cfd
1 // PR c++/60336
2 // { dg-options "-Wabi=11" }
4 #include <stdarg.h>
6 struct A { };
8 void f(int i, ...)
10   va_list ap;
11   va_start (ap, i);
12   if (i >= 1)
13     va_arg (ap, A);
14   if (i >= 2)
15     va_arg (ap, int);
18 int main()
20   f(0);
21   f(1, A()); // { dg-warning "ABI" "" { target { { i?86-*-* x86_64-*-* } && { ! { ia32 } } } } }
22   f(2, A(), 42); // { dg-warning "ABI" "" { target { { i?86-*-* x86_64-*-* } && { ! { ia32 } } } } }