1 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
2 /* { dg-do compile } */
6 struct list_head *prev;
10 struct list_head queue[100];
14 struct prio_array *active, arrays[2];
17 void sched_init (unsigned long __ptr)
20 struct prio_array *array;
22 rq = (&(*( { (typeof (&per_cpu__runqueues)) (__ptr); } )));
23 for (j = 0; j < 2; j++)
25 array = rq->arrays + j;
26 for (k = 0; k < 100; k++)
27 (array->queue + k)->prev = array->queue;
31 /* { dg-final { cleanup-tree-dump "vect" } } */