Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / expr / stdarg2.C
blobcf2eabcb1612f1707720362ab89288ca59463172
1 // PR target/26141
3 #include <stdarg.h>
5 struct S
7   double a;
8 };
10 void
11 foo (int z, ...)
13   struct S arg;
14   va_list ap;
15   arg = va_arg (ap, struct S);
19 struct T
21   __complex__ float a;
24 void
25 bar (int z, ...)
27   struct T arg;
28   va_list ap;
29   arg = va_arg (ap, struct T);