* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20060904-1.c
blobf9f768664857176462756dbf1ad36fc7685bada8
1 /* PR rtl-optimization/27616 */
2 /* Reported by Lee Ji Hwan <moonz@kaist.ac.kr> */
3 /* Testcase by Andrew Pinski <pinskia@gcc.gnu.org> */
5 struct chunk_s
7 unsigned int size;
8 int offset_next;
9 };
11 typedef struct chunk_s chunk_t;
13 void foo(chunk_t *first)
15 chunk_t *cur;
16 char *first0;
18 do {
19 first0 = (char *) first;
20 cur = (chunk_t *) (first0 + first->offset_next);
21 if ((chunk_t *) (first0 + cur->offset_next) != first)
22 return ;
24 first->offset_next = 0;
26 } while (cur->size != 0);