| 1 |
/* PR tree-optimization/71109 */ |
| 2 |
/* { dg-additional-options "-std=gnu17" } */ |
| 3 |
/* { dg-require-effective-target non_strict_prototype } */ |
| 4 |
|
| 5 |
struct S { int g, h; signed char i; int j; signed char k; int l[4]; } a, c; |
| 6 |
struct T { signed char g; } e; |
| 7 |
int *b, d; |
| 8 |
static void foo (); |
| 9 |
|
| 10 |
void |
| 11 |
bar (void) |
| 12 |
{ |
| 13 |
while (d) |
| 14 |
{ |
| 15 |
int k; |
| 16 |
struct T f[3]; |
| 17 |
foo (bar, a); |
| 18 |
for (k = 0;; k++) |
| 19 |
f[k] = e; |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
static inline void |
| 24 |
foo (int x, struct S y, struct T z) |
| 25 |
{ |
| 26 |
for (z.g = 2; z.g; z.g--) |
| 27 |
{ |
| 28 |
c = a = y; |
| 29 |
*b |= 6; |
| 30 |
if (y.g) |
| 31 |
break; |
| 32 |
} |
| 33 |
} |