Commit 2eb96bdb by Eric Botcazou Committed by Eric Botcazou

20021212-1.c: New test.

2002-12-12  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* gcc.c-torture/compile/20021212-1.c: New test.

From-SVN: r60068
parent a5163dcd
2002-12-12 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.c-torture/compile/20021212-1.c: New test.
2002-12-11 Neil Booth <neil@daikokuya.co.uk> 2002-12-11 Neil Booth <neil@daikokuya.co.uk>
* gcc.dg/fshort-wchar: New test. * gcc.dg/fshort-wchar: New test.
......
/* PR optimization/8334 */
/* Verify that GCC produces valid operands
after simplifying an addition. */
void foo(int m, int n, double *f)
{
int i, j, k = 1;
for (j = 0; j < n; j++) {
for (i = k; i < m; i++) {
f[i] = (double) (i * j);
f[i + j] = (double) ((i + 1) * j);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment