FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20000422-1.c
blobf94d4c5efc21ae903d62e6d505bb5ddd2abdb93e
1 int ops[13] =
3 11, 12, 46, 3, 2, 2, 3, 2, 1, 3, 2, 1, 2
4 };
6 int correct[13] =
8 46, 12, 11, 3, 3, 3, 2, 2, 2, 2, 2, 1, 1
9 };
11 int num = 13;
13 int main()
15 int i;
17 for (i = 0; i < num; i++)
19 int j;
21 for (j = num - 1; j > i; j--)
23 if (ops[j-1] < ops[j])
25 int op = ops[j];
26 ops[j] = ops[j-1];
27 ops[j-1] = op;
33 for (i = 0; i < num; i++)
34 if (ops[i] != correct[i])
35 abort ();
37 exit (0);