Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / gcc.dg / vect / pr33833.c
blobebdfcb1f81869e07a945182d7be2ddadc60e37b7
1 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
2 /* { dg-do compile } */
4 #define signed
5 typedef unsigned __PTRDIFF_TYPE__ uintptr_t;
6 #undef signed
8 struct list_head
10 struct list_head *prev;
12 struct prio_array
14 struct list_head queue[100];
16 struct rq
18 struct prio_array *active, arrays[2];
19 } per_cpu__runqueues;
21 void sched_init (uintptr_t __ptr)
23 int j, k;
24 struct prio_array *array;
25 struct rq *rq;
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;
35 /* { dg-final { cleanup-tree-dump "vect" } } */