x86: Tune Skylake, Cannonlake and Icelake as Haswell
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr34415.c
blobec75394afe0f8381445d326101d04dae3963e29e
1 const char *__attribute__((noinline))
2 foo (const char *p)
4 const char *end;
5 int len = 1;
6 for (;;)
8 int c = *p;
9 c = (c >= 'a' && c <= 'z' ? c - 'a' + 'A' : c);
10 if (c == 'B')
11 end = p;
12 else if (c == 'A')
14 end = p;
16 p++;
17 while (*p == '+');
19 else
20 break;
21 p++;
22 len++;
24 if (len > 2 && *p == ':')
25 p = end;
26 return p;
29 int
30 main (void)
32 const char *input = "Bbb:";
33 return foo (input) != input + 2;