]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/pr78605.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr78605.c
CommitLineData
bce6f760 1/* PR middle-end/78605 - bogus -Wformat-overflow=1 with %f
8a123229 2 { dg-do compile }
bce6f760 3 { dg-options "-O2 -Wall -Wextra -Wformat-overflow=1" } */
8a123229
MS
4
5char d[10];
6
7int f (int i)
8{
9 return __builtin_sprintf (d, "%i %i", i, i);
10}
11
12int g (float f)
13{
14 return __builtin_sprintf (d, "%.2f %.2f", f, f);
15}