1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
6 extern inline __attribute__ ((__gnu_inline__
)) int
7 sprintf (char *restrict s
, const char *restrict fmt
, ...)
9 return __builtin___sprintf_chk (s
, 1, __builtin_object_size (s
, 1),
10 fmt
, __builtin_va_arg_pack ());
22 for (n
= 0; n
< c
; n
++)
23 p
+= sprintf (p
, "a,");
25 if (__builtin_object_size (p
, 1) == 0)
30 /* { dg-final { scan-assembler-not "abort" } } */