2 /* { dg-do compile { target { c || c++11 } } } */
3 /* { dg-options "-Wsuggest-attribute=format" } */
7 [[gnu::__format__(__printf__
, 1, 2)]]
9 do_printf(const char * const a0
, ...)
13 __builtin_vprintf(a0
, ap
);
17 [[gnu::__format__(__scanf__
, 1, 2)]]
19 do_scanf(const char * const a0
, ...)
23 __builtin_vscanf(a0
, ap
);
29 [[gnu::__format__(__strftime__
, 1, 0)]]
31 do_strftime(const char * const a0
, struct tm
* a1
)
34 __builtin_strftime(buff
, sizeof(buff
), a0
, a1
);