Fix warnings occured during profiledboostrap on
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / logic.c
bloba9d6e9d0c2d47647334426698c5199c87f8f3fb8
1 logic (a, b)
2 int *a, b;
4 if (*a & 123)
5 b = 1;
6 if (*a & ~222)
7 b = 2;
8 if (124 & *a)
9 b = 3;
10 if (~111 & *a)
11 b = 4;
13 if (~*a & 23)
14 b = 1;
15 if (~*a & ~22)
16 b = 2;
17 if (24 & ~*a)
18 b = 3;
19 if (~11 & ~*a)
20 b = 4;
22 if (~*a & b)
23 b = 1;
24 if (~*a & ~b)
25 b = 2;
26 if (*a & ~*a)
27 b = 3;
28 return b;
31 x (a, b, c)
33 for (a = 0; --a > 0;);
34 for (b = -1; --b > 0;);
35 for (c = -65536; --c > 0;);
36 return a + b + c;