2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / vararg-3.C
blob4585f3249eda47562a9321f08c592b01a3cbda6d
1 // PR c++/31488: va_list considered non-POD on alpha
2 // { dg-do compile }
4 typedef __builtin_va_list __gnuc_va_list;
5 typedef __gnuc_va_list va_list;
7 extern int foo (int a, int b, ...);
9 int bar (int a, int b, ...)
11   va_list args;
12   __builtin_va_start(args,b);
13   int result = foo (a, b, args);
14   __builtin_va_end(args);
15   return result;