summaryrefslogtreecommitdiff
path: root/libmisc/tests/test_assert_min.c
blob: 9c0394b46c8d89f255b1deb30af8e7fbb5f77af6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* libmisc/tests/test_assert_min.c - Tests for minimal <libmisc/assert.h>
 *
 * Copyright (C) 2024  Luke T. Shumaker <lukeshu@lukeshu.com>
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

/* Don't include *anything* else.  */
#include <libmisc/assert.h>

static_assert(1 == 1);

int main() {
	assert_msg(1, "foo");
	assert(1);
	return 0;
	assert_notreached("ret");
}