llvm-for-llvmta/tools/clang/test/PCH/va_arg.h

16 lines
381 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// Header for PCH test va_arg.c
typedef __builtin_va_list va_list;
char *f (char * (*g) (char **, int), char **p, ...) {
char *s;
va_list v;
s = g (p, __builtin_va_arg(v, int));
}
typedef __builtin_ms_va_list __ms_va_list;
char *__attribute__((ms_abi)) h(char *(*i)(char **, int), char **p, ...) {
char *s;
__ms_va_list v;
s = i(p, __builtin_va_arg(v, int));
}