llvm-project/clang/test/Sema/va_arg_x86_64.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
375 B
C
Raw Normal View History

// RUN: %clang_cc1 -fsyntax-only -verify -triple=x86_64-unknown-freebsd7.0 %s
// expected-no-diagnostics
// PR2631
char* foo(char *fmt, __builtin_va_list ap)
{
return __builtin_va_arg((ap), char *);
}
// PR2692
typedef __builtin_va_list va_list;
2009-07-22 08:43:08 +08:00
static void f (char * (*g) (char **, int), char **p, ...) {
char *s;
va_list v;
s = g (p, __builtin_va_arg(v, int));
}