diff options
Diffstat (limited to 'libcr/tests/test_matrix.c')
-rw-r--r-- | libcr/tests/test_matrix.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libcr/tests/test_matrix.c b/libcr/tests/test_matrix.c new file mode 100644 index 0000000..f1aa6fe --- /dev/null +++ b/libcr/tests/test_matrix.c @@ -0,0 +1,20 @@ +/* libcr/tests/test_matrix.c - Tests for libcr + * + * Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +#include <stdlib.h> /* for exit(3) */ + +#include <libcr/coroutine.h> + +COROUTINE cr_init(void *) { + cr_begin(); + exit(0); + cr_end(); +} + +int main() { + coroutine_add("init", cr_init, NULL); + coroutine_main(); +} |