1 /* { dg-do compile } */ 2 3 #ifdef __SIZE_TYPE__ 4 typedef __SIZE_TYPE__ size_t; 5 #else 6 typedef unsigned int size_t; 7 #endif 8 9 extern int snprintf (char *, size_t, const char *, ...); 10 const char a[] = ""; 11 int b; 12 void get_bar()13get_bar () 14 { 15 snprintf (0, 0, "%s", &a[b]); 16 } 17