1 /* PR middle-end/100732 - ICE on sprintf %s with integer argument
3 { dg-options "-O2 -Wall -fdump-tree-optimized" } */
5 void nowarn_s_i (char *d
, int i
)
7 __builtin_sprintf (d
, "%s", i
); // { dg-warning "\\\[-Wformat" }
10 void warn_s_i (char *d
)
13 __builtin_sprintf (d
, "%s", i
); // { dg-warning "\\\[-Wformat" }
14 // { dg-warning "\\\[-Wuninitialized" "" { target *-*-* } .-1 }
17 void warn_i_i (char *d
)
20 __builtin_sprintf (d
, "%i", i
); // { dg-warning "\\\[-Wuninitialized" }