blob: cc574a7a986432288cc0d9d3af9194f1bef61ff5 [file] [log] [blame]
David Majnemer47ad6ce2013-08-21 21:54:46 +00001// RUN: %clang_cc1 -fsyntax-only -verify -fms-compatibility -triple=i386-pc-win32 -pedantic %s
2
3int printf(const char *format, ...) __attribute__((format(printf, 1, 2)));
4
5void test() {
6 short val = 30;
7 printf("val = %I64d\n", val); // expected-warning{{'I64' length modifier is not supported by ISO C}} \
8 // expected-warning{{format specifies type '__int64' (aka 'long long') but the argument has type 'short'}}
9}