]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/20050321-1.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / 20050321-1.c
1 /* This caused an ICE on powerpc-linux-gnu due to not
2 up-to-date life info (PR middle-end/20177). */
3
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -fmodulo-sched" } */
6 extern void * malloc (__SIZE_TYPE__);
7
8 struct s {
9 int k;
10 };
11
12 int n;
13 struct s *a1, *(*use)[];
14 float (*vector)[];
15
16 void
17 foo (float *V)
18 {
19 int i, used = 0;
20
21 vector = malloc (i * sizeof (float));
22 while ((*use)[used] != a1)
23 used += 1;
24 for (i = 0; i < n; i++)
25 *V += (*vector)[i];
26 }