* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr33870.c
blob9c0e30d94be586db0dc1f3d2b0de67e7be5cd8d1
1 /* { dg-do run } */
3 struct X {
4 int i;
5 int a[4];
6 } m;
8 int a[4];
10 int __attribute__((noinline)) foo(int b)
12 int (*p)[4] = b ? &a : &m.a;
13 a[3] = 0;
14 (*p)[3] = 1;
15 return (*p)[3] + (*p)[2] + (*p)[1] + a[0] + a[3];
18 extern void abort (void);
20 int main()
22 int i;
23 for (i = 0; i < 4; ++i)
24 a[i] = 0;
25 if (foo(1) != 2)
26 abort ();
27 return 0;