Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20021212-1.c
blobb89669d75b82554c3a1ae23134ae3862681a798b
1 /* PR optimization/8334 */
2 /* Verify that GCC produces valid operands
3 after simplifying an addition. */
5 void foo(int m, int n, double *f)
7 int i, j, k = 1;
9 for (j = 0; j < n; j++) {
10 for (i = k; i < m; i++) {
11 f[i] = (double) (i * j);
12 f[i + j] = (double) ((i + 1) * j);