Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / 20051215-1.c
blob143a449d080c29a60b6553be17e461c38a52bd26
1 /* PR rtl-optimization/24899 */
3 extern void abort (void);
5 __attribute__ ((noinline)) int
6 foo (int x, int y, int *z)
8 int a, b, c, d;
10 a = b = 0;
11 for (d = 0; d < y; d++)
13 if (z)
14 b = d * *z;
15 for (c = 0; c < x; c++)
16 a += b;
19 return a;
22 int
23 main (void)
25 if (foo (3, 2, 0) != 0)
26 abort ();
27 return 0;