1 /* PR 79800 - wrong snprintf result range with precision in a narrow
2 negative-positive range
3 { dg-do "run" { target c99_runtime } }
4 { dg-options "-O2 -Wall" } */
9 volatile double x
= 1.23456789;
17 int n1
= __builtin_sprintf (d
, "%.*a", p
, x
);
18 const char *s
= n1
< 20 ? "< 20" : ">= 20";
20 if (__builtin_strcmp (s
, ">= 20"))