summaryrefslogtreecommitdiff
path: root/libcr/tests/test_matrix.c
blob: f1aa6febbe2c61a9ad8de15bce54d917bdba5bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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();
}