Home | History | Annotate | Download | only in Sema
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 int printf(const char *, ...);
      4 
      5 const char* f(const char *s) __attribute__((format_arg(1)));
      6 
      7 void g(const char *s) {
      8   printf("%d", 123);
      9   printf("%d %d", 123); // expected-warning{{more '%' conversions than data arguments}}
     10 
     11   printf(f("%d"), 123);
     12   printf(f("%d %d"), 123); // expected-warning{{more '%' conversions than data arguments}}
     13 }
     14