Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr45843.C
blobf77b8cb0135d7a0fe689e5850e86edc9f598ee3a
1 // PR target/45843
2 // { dg-do run }
4 #include <stdarg.h>
6 extern "C" void abort ();
7 struct S { struct T { } a[14]; char b; };
8 struct S arg, s;
10 void
11 foo (int z, ...)
13   char c;
14   va_list ap;
15   va_start (ap, z);
16   c = 'a';
17   arg = va_arg (ap, struct S);
18   if (c != 'a')
19     abort ();
20   va_end (ap);
23 int
24 main ()
26   foo (1, s);
27   return 0;