Home | History | Annotate | Download | only in Sema

Lines Matching refs:printf

3 int printf(char const *, ...);
7 printf("%zu", (double)42); // expected-warning {{format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'double'}}
10 printf("%jd", (double)42); // expected-warning {{format specifies type 'intmax_t' (aka 'long') but the argument has type 'double'}}
11 printf("%ju", (double)42); // expected-warning {{format specifies type 'uintmax_t' (aka 'unsigned long') but the argument has type 'double'}}
14 printf("%td", (double)42); // expected-warning {{format specifies type 'ptrdiff_t' (aka 'long') but the argument has type 'double'}}
18 printf("%jn", (long*)0); // no-warning
19 printf("%jn", (unsigned long*)0); // no-warning
20 printf("%jn", (int*)0); // expected-warning{{format specifies type 'intmax_t *' (aka 'long *') but the argument has type 'int *'}}
22 printf("%zn", (long*)0); // no-warning
25 printf("%tn", (long*)0); // no-warning
26 printf("%tn", (unsigned long*)0); // no-warning
27 printf("%tn", (int*)0); // expected-warning{{format specifies type 'ptrdiff_t *' (aka 'long *') but the argument has type 'int *'}}