PR tree-optimization/81384 - built-in form of strnlen missing
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr85529-1.c
blob83d5cdd997ec784ed72c75a7cad76025f16922c8
1 /* PR tree-optimization/85529 */
3 struct S { int a; };
5 int b, c = 1, d, e, f;
6 static int g;
7 volatile struct S s;
9 signed char
10 foo (signed char i, int j)
12 return i < 0 ? i : i << j;
15 int
16 main ()
18 signed char k = -83;
19 if (!d)
20 goto L;
21 k = e || f;
23 for (; b < 1; b++)
24 s.a != (k < foo (k, 2) && (c = k = g));
25 if (c != 1)
26 __builtin_abort ();
27 return 0;