| 1 |
/* PR tree-optimization/111519 */ |
| 2 |
/* { dg-do run } */ |
| 3 |
|
| 4 |
int a, o; |
| 5 |
char b, f, i; |
| 6 |
long c; |
| 7 |
static signed char d; |
| 8 |
static char g; |
| 9 |
unsigned *h; |
| 10 |
signed char *e = &f; |
| 11 |
static signed char **j = &e; |
| 12 |
static long k[2]; |
| 13 |
unsigned **l = &h; |
| 14 |
short m; |
| 15 |
volatile int z; |
| 16 |
|
| 17 |
__attribute__((noipa)) void |
| 18 |
foo (char *p) |
| 19 |
{ |
| 20 |
(void) p; |
| 21 |
} |
| 22 |
|
| 23 |
int |
| 24 |
main () |
| 25 |
{ |
| 26 |
int p = z; |
| 27 |
signed char *n = &d; |
| 28 |
*n = 0; |
| 29 |
while (c) |
| 30 |
for (; i; i--) |
| 31 |
; |
| 32 |
for (g = 0; g <= 1; g++) |
| 33 |
{ |
| 34 |
*n = **j; |
| 35 |
k[g] = 0 != &m; |
| 36 |
*e = l && k[0]; |
| 37 |
} |
| 38 |
if (p) |
| 39 |
foo (&b); |
| 40 |
for (; o < 4; o++) |
| 41 |
{ |
| 42 |
a = d; |
| 43 |
if (p) |
| 44 |
foo (&b); |
| 45 |
} |
| 46 |
if (a != 1) |
| 47 |
__builtin_abort (); |
| 48 |
} |