1 // { dg-do compile { target { aarch64*-*-* arm*-*-* } } }
2 // { dg-options "-Wno-abi" }
3 // { dg-require-effective-target arm_eabi { target arm*-*-* } }
4 
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 // AAPCS64 \S 7.1.4 has the same requirement for AArch64 targets.
8 // #include <stdarg.h>
9 typedef __builtin_va_list va_list;
10 
11 // { dg-final { scan-assembler "\n_Z1fPSt9__va_list:" } }
f(va_list *)12 void f(va_list*) {}
13 
14 // { dg-final { scan-assembler "\n_Z1gSt9__va_listS_:" } }
g(va_list,va_list)15 void g(va_list, va_list) {}
16