PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 980506-3.c
bloba943e9ad62c2a35f0d475e34254821644d37b68b
1 unsigned char lookup_table [257];
3 static int
4 build_lookup (pattern)
5 unsigned char *pattern;
7 int m;
9 m = strlen (pattern) - 1;
11 memset (lookup_table, ++m, 257);
12 return m;
15 int main(argc, argv)
16 int argc;
17 char **argv;
19 if (build_lookup ("bind") != 4)
20 abort ();
21 else
22 exit (0);