clang/test/Sema/warn-printf-insufficient-data-args.c
raw| 1 | // RUN: %clang_cc1 -fsyntax-only -verify=WARNING-ON %s |
| 2 | // RUN: %clang_cc1 -fsyntax-only -Wno-format-insufficient-args -verify=WARNING-OFF %s |
| 3 | |
| 4 | |
| 5 | int printf(const char * format, ...); |
| 6 | |
| 7 | int main(void) { |
| 8 | int patatino = 42; |
| 9 | printf("%i %i", patatino); // WARNING-ON-warning {{more '%' conversions than data arguments}} |
| 10 | // WARNING-OFF-no-diagnostics |
| 11 | } |