Commit db488e9e by Jeffrey A Law Committed by Jeff Law

* gcc.c-torture/execute/990404-1.c: New test.

From-SVN: r26170
parent 478df796
Sun Apr 4 04:02:53 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/990404-1.c: New test.
1999-04-03 10:35 -0500 Zack Weinberg <zack@rabi.columbia.edu>
* gcc.dg/cpp-if1.c: Adjust regexps to accommodate cccp.
......
int x[10] = { 0,1,2,3,4,5,6,7,8,9};
int
main()
{
int niterations = 0, i;
for (;;) {
int i, mi, max;
max = 0;
for (i = 0; i < 10 ; i++) {
if (x[i] > max) {
max = x[i];
mi = i;
}
}
if (max == 0)
break;
x[mi] = 0;
niterations++;
if (niterations > 10)
abort ();
}
exit (0);
}
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