gcc/testsuite/gcc.c-torture/compile/pr24883.c
raw| 1 | typedef struct _rec_stl rec_stl; |
| 2 | struct _rec_stl { |
| 3 | unsigned char **strs; |
| 4 | }; |
| 5 | void |
| 6 | orec_str_list(int count) { |
| 7 | rec_stl *stl; |
| 8 | int i, j; |
| 9 | int li, lj; |
| 10 | unsigned char ci, cj; |
| 11 | for (i = 0; i < count; i++) { |
| 12 | for (j = i + 1; j < count; j++) { |
| 13 | cj = lj > 2 ? stl->strs[j][0] : (long)stl->strs[j] & 0xff; |
| 14 | if ((count >= 16 && cj < ci) || (cj == ci && lj > li)) { |
| 15 | stl->strs[j] = stl->strs[i]; |
| 16 | ci ^= cj; |
| 17 | cj ^= ci; |
| 18 | ci ^= cj; |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | } |