Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / Wstrict-overflow-27.c
blobe2cdcbcb078771f49b7313ae69609dd974ee624b
1 /* { dg-do compile } */
2 /* { dg-require-effective-target alloca } */
3 /* { dg-options "-O3 -Wstrict-overflow=2 -Werror" } */
5 typedef __SIZE_TYPE__ size_t;
6 extern char *strtok_r (char *__restrict __s, const char *__restrict __delim,
7 char **__restrict __save_ptr)
8 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3)));
9 extern const unsigned short int **__ctype_b_loc (void)
10 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
11 extern int *DEBUGLEVEL_CLASS;
12 size_t debug_num_classes = 0;
13 void debug_parse_param(char *param);
14 void
15 debug_parse_levels(const char *params_str, size_t str_len)
17 char str[str_len+1];
18 char *tok, *saveptr;
19 size_t i;
20 tok = strtok_r(str, " \t,\n\r", &saveptr);
21 if (((*__ctype_b_loc ())[(int) ((tok[0]))]))
22 tok = strtok_r(((void *)0), " \t,\n\r", &saveptr);
23 else
24 DEBUGLEVEL_CLASS[0] = 0;
25 for (i = 0 +1; i < debug_num_classes; i++)
26 DEBUGLEVEL_CLASS[i] = DEBUGLEVEL_CLASS[0];
27 while (tok != ((void *)0) )
28 debug_parse_param(tok);