gcc/testsuite/gcc.dg/format/sys_format.c
raw| 1 | /* Test system default printf formatter specifiers. */ |
| 2 | /* Origin: Kai Tietz <[email protected]> */ |
| 3 | /* { dg-do compile { target { *-*-mingw* } } } */ |
| 4 | /* { dg-options "-std=gnu89" } */ |
| 5 | |
| 6 | #define USE_SYSTEM_FORMATS |
| 7 | #include "format.h" |
| 8 | |
| 9 | __attribute__((format(printf, 1, 2))) void foo (const char *, ...); |
| 10 | |
| 11 | void bar (long long v1, long v2, int v3) |
| 12 | { |
| 13 | foo ("%I64d %I32d %ld %d\n", v1, v2, v2, v3); |
| 14 | } |