testsuite: Revert to the original version of pr100056.c
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr97769.c
blob59e0b46488138b42536d25d45a30747b62c90d9c
1 /* { dg-do compile } */
2 /* { dg-additional-options "-O3" } */
4 typedef struct {
5 int alg;
6 int h1[8];
7 unsigned d1[1];
8 } tmp;
9 typedef struct {
10 tmp itmp;
11 tmp otmp;
12 } h1;
13 h1 c;
15 static void
16 fn1(char *p1, int p2)
18 int i = 0;
19 for (; i < 4; i++)
20 *p1++ = p2;
23 static void
24 fn2(tmp *p1)
26 char *d = (char *)p1->d1;
27 int *b = p1->h1;
28 for (int a = 0; a; a++, d += 4)
29 fn1(d, *b++);
32 void fn3() { fn2(&(&c)->otmp); }