Mercurial > hg > Gears > GearsAgda
diff src/parallel_execution/test/queue_test.c @ 280:2c2e4e597eb0
generate no compile errors
author | mir3636 |
---|---|
date | Fri, 03 Feb 2017 17:47:27 +0900 |
parents | cd3486e4ba70 |
children | ceb8735aefb0 |
line wrap: on
line diff
--- a/src/parallel_execution/test/queue_test.c Fri Feb 03 03:25:57 2017 +0900 +++ b/src/parallel_execution/test/queue_test.c Fri Feb 03 17:47:27 2017 +0900 @@ -1,6 +1,4 @@ -#include "../queue.h" #include "../context.h" -#include "../origin_cs.h" #include <assert.h> __code queueTest1(struct Context* context, struct Task* task, struct Queue* queue) { @@ -11,7 +9,7 @@ } __code queueTest1_stub(struct Context* context) { - Queue* queue = &createSingleLinkedQueue(context)->Queue; + Queue* queue = createSingleLinkedQueue(context); context->data[D_Queue]->Queue.queue = (union Data*)queue; SingleLinkedQueue* singleLinkedQueue = &context->data[D_Queue]->Queue.queue->Queue.queue->SingleLinkedQueue; assert(singleLinkedQueue->top == NULL);