pr79732.c: Require alias support.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr57381.c
blobff6550a6d5fffc2d2e34709385f9bcf2fbccb648
1 /* { dg-do compile } */
2 /* { dg-require-effective-target int32plus } */
4 struct S0 { int f0, f1, f2; };
6 struct S1 {
7 int f0;
8 volatile struct S0 f2;
9 };
11 static struct S1 s = {0x47BED265,{0x06D4EB3E,5,0U}};
13 int foo(struct S0 p)
15 for (s.f2.f2 = 0; (s.f2.f2 <= 12); s.f2.f2++)
17 volatile int *l_61[5][2][2] = {{{&s.f2.f0,&s.f2.f0},{&s.f2.f0,&s.f2.f0}},{{&s.f2.f0,&s.f2.f0},{&s.f2.f0,&s.f2.f0}},{{&s.f2.f0,(void*)0},{&s.f2.f0,&s.f2.f0}},{{&s.f2.f0,&s.f2.f0},{&s.f2.f0,&s.f2.f0}},{{&s.f2.f0,&s.f2.f0},{(void*)0,&s.f2.f0}}};
19 volatile int **l_68 = &l_61[0][0][1];
20 volatile int *l_76 = &s.f2.f0;
21 (*l_68) = l_61[0][0][0];
22 if ((*l_76 = (p.f2 % 5))) ;
24 return p.f0;