Home | History | Annotate | Download | only in Sema
      1 // RUN: %clang_cc1 -fsyntax-only -verify -triple=x86_64-unknown-freebsd7.0 %s
      2 // expected-no-diagnostics
      3 
      4 // PR2631
      5 char* foo(char *fmt, __builtin_va_list ap)
      6 {
      7   return __builtin_va_arg((ap), char *);
      8 }
      9 
     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));
     16 }
     17