Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / abi / arm_va_list.C
blob45a426a4f388ef15fc2a48750fef73f58219f89c
1 // { dg-do compile }
2 // { dg-options "-Wno-abi" }
3 // { dg-require-effective-target arm_eabi }
5 // AAPCS \S 7.1.4 requires that va_list be a typedef for "struct
6 // __va_list".  The mangling is as if it were "std::__va_list".
7 // #include <stdarg.h>
8 typedef __builtin_va_list va_list;
10 // { dg-final { scan-assembler "\n_Z1fPSt9__va_list:" } }
11 void f(va_list*) {}
13 // { dg-final { scan-assembler "\n_Z1gSt9__va_listS_:" } }
14 void g(va_list, va_list) {}