aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr68349.c
blob: 3c38c3a01f398609b259ee7b538129718021db39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* PR target/68483 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

int a, b;
unsigned long my_strlen();
typedef struct sHyphenNode {
  char sepcnts[0];
  struct sHyphenNode *Daughters[];
} * PHyphenNode;
int GetIndex();
PHyphenNode c;
void DoHyphens_Field_1() {
  char d[300], e[300];
  int z, f, l = my_strlen();
  for (; z;)
    ;
  for (; l; z++) {
    f = z;
    for (; f < l; f++) {
      c = c->Daughters[GetIndex(d[f])];
      a = 0;
      for (; a <= f - z; a++)
	if (e[z + a])
	  e[z] = c->sepcnts[a];
    }
  }
  if (e[z])
    b = 1;
}