1 /* PR middle-end/100325 - missing warning with -O0 on sprintf overflow with
4 { dg-options "-O0 -Wall" } */
6 #define S(n) (&"0123456789"[10 - n])
8 extern int sprintf (char*, const char*, ...);
14 sprintf (d
, "%s", S (9)); // { dg-bogus "-Wformat-overflow" }
19 sprintf (d
, "%s", S (10)); // { dg-warning "-Wformat-overflow" }