| 1 |
/* PR target/68483 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-std=gnu17 -O2" } */ |
| 4 |
|
| 5 |
int a, b; |
| 6 |
unsigned long my_strlen(); |
| 7 |
typedef struct sHyphenNode { |
| 8 |
char sepcnts[0]; |
| 9 |
struct sHyphenNode *Daughters[]; |
| 10 |
} * PHyphenNode; |
| 11 |
int GetIndex(); |
| 12 |
PHyphenNode c; |
| 13 |
void DoHyphens_Field_1() { |
| 14 |
char d[300], e[300]; |
| 15 |
int z, f, l = my_strlen(); |
| 16 |
for (; z;) |
| 17 |
; |
| 18 |
for (; l; z++) { |
| 19 |
f = z; |
| 20 |
for (; f < l; f++) { |
| 21 |
c = c->Daughters[GetIndex(d[f])]; |
| 22 |
a = 0; |
| 23 |
for (; a <= f - z; a++) |
| 24 |
if (e[z + a]) |
| 25 |
e[z] = c->sepcnts[a]; |
| 26 |
} |
| 27 |
} |
| 28 |
if (e[z]) |
| 29 |
b = 1; |
| 30 |
} |