[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / va_arg_x86_64.c
blob2659a1b6d4cd0bc8248cc2af4486cd22254d85d6
1 // RUN: %clang_cc1 -fsyntax-only -verify -triple=x86_64-unknown-freebsd7.0 %s
2 // expected-no-diagnostics
4 // PR2631
5 char* foo(char *fmt, __builtin_va_list ap)
7 return __builtin_va_arg((ap), char *);
10 // PR2692
11 typedef __builtin_va_list va_list;
12 static void f (char * (*g) (char **, int), char **p, ...) {
13 char *s;
14 va_list v;
15 s = g (p, __builtin_va_arg(v, int));