Merge from mainline.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20050321-1.c
blob5455db443046153ccff564ecec174666e4d7427d
1 /* This caused an ICE on powerpc-linux-gnu due to not
2 up-to-date life info (PR middle-end/20177). */
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -fmodulo-sched" } */
6 /* malloc doesn't take a long. */
7 /* { dg-xfail-if "" { "m32c-*-*" } { "*" } { "" } } */
8 extern void * malloc (long);
10 struct s {
11 int k;
14 int n;
15 struct s *a1, *(*use)[];
16 float (*vector)[];
18 void
19 foo (float *V)
21 int i, used = 0;
23 vector = malloc (i * sizeof (float));
24 while ((*use)[used] != a1)
25 used += 1;
26 for (i = 0; i < n; i++)
27 *V += (*vector)[i];