1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -Wall" } */ 3 4 typedef __SIZE_TYPE__ size_t; 5 extern void __chk_fail (void); 6 extern int snprintf (char *, size_t, const char *, ...); 7 main()8int main() 9 { 10 char temp[100]; 11 unsigned int x; 12 char *str = temp; 13 for(x=0; x<256; ++x) { 14 snprintf(str, 4, "%%%02X", x); 15 } 16 } 17