c++: Implement for namespace statics CWG 2867 - Order of initialization for structure...
[official-gcc.git] / gcc / testsuite / gcc.dg / pr85598.c
blobc84b63f80844e27b8629fffc29e0a5f431b4beec
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wall" } */
4 typedef __SIZE_TYPE__ size_t;
5 extern void __chk_fail (void);
6 extern int snprintf (char *, size_t, const char *, ...);
8 int main()
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);