1 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
2 /* { dg-do compile } */
5 typedef unsigned __PTRDIFF_TYPE__
uintptr_t;
10 struct list_head
*prev
;
14 struct list_head queue
[100];
18 struct prio_array
*active
, arrays
[2];
21 void sched_init (uintptr_t __ptr
)
24 struct prio_array
*array
;
26 rq
= (&(*( { (typeof (&per_cpu__runqueues
)) (__ptr
); } )));
27 for (j
= 0; j
< 2; j
++)
29 array
= rq
->arrays
+ j
;
30 for (k
= 0; k
< 100; k
++)
31 (array
->queue
+ k
)->prev
= array
->queue
;