]> git.ozlabs.org Git - ccan/blobdiff - ccan/coroutine/test/api-1.c
coroutine: Remove on-stack buffers from testcases
[ccan] / ccan / coroutine / test / api-1.c
index fbf66df60b117b9ef140601231e96d4fbc16d38b..ea59dc02fb3f9ad7df753b5cc84a8f91972af0c5 100644 (file)
@@ -30,9 +30,10 @@ static void test_trivial(struct coroutine_stack *stack)
 }
 
 
+static char buf[COROUTINE_MIN_STKSZ + COROUTINE_STK_OVERHEAD];
+
 int main(void)
 {
-       char buf[COROUTINE_MIN_STKSZ + COROUTINE_STK_OVERHEAD];
        struct coroutine_stack *stack;
 
        /* This is how many tests you plan to run */