1 /* Test for printf formats. Formats using extensions to the standard
2 should be rejected in strict pedantic mode. But allowed by -Wno-pedantic-ms-format.
4 /* Origin: Kai Tietz <kai.tietz@onevision.com> */
5 /* { dg-do compile { target { *-*-mingw* } } } */
6 /* { dg-options "-std=iso9899:1999 -pedantic -Wformat -Wno-pedantic-ms-format" } */
8 #define USE_SYSTEM_FORMATS
18 foo (float f
, double d
, void *p
)
20 printf (XXX
, p
); /* { dg-warning "format" "bad argument types" } */
21 printf ("%I32x", f
); /* { dg-warning "format" "bad argument types" } */
22 printf ("%I64x", d
); /* { dg-warning "format" "bad argument types" } */