PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr85756.c
blob8c959660143019fa194155cf28cb531a0241c0a1
1 /* PR target/85756 */
3 #if __CHAR_BIT__ == 8 && __SIZEOF_SHORT__ == 2 && __SIZEOF_INT__ == 4
4 int a, c, *e, f, h = 10;
5 short b;
6 unsigned int p;
8 __attribute__((noipa)) void
9 bar (int a)
11 asm volatile ("" : : "r" (a) : "memory");
14 void
15 foo ()
17 unsigned j = 1, m = 430523;
18 int k, n = 1, *l = &h;
19 lab:
20 p = m;
21 m = -((~65535U | j) - n);
22 f = b << ~(n - 8);
23 n = (m || b) ^ f;
24 j = p;
25 if (p < m)
26 *l = k < 3;
27 if (!n)
28 l = &k;
29 if (c)
31 bar (a);
32 goto lab;
34 if (!*l)
35 *e = 1;
38 int
39 main ()
41 foo ();
42 return 0;
44 #else
45 int
46 main ()
48 return 0;
50 #endif