From 3756c77e536a293fc735726eac0e5f0c3a8b89da Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 21 Dec 2024 23:50:09 -0700 Subject: libmisc: Check that assert.h has no deps --- libmisc/tests/test_assert_min.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libmisc/tests/test_assert_min.c (limited to 'libmisc/tests/test_assert_min.c') diff --git a/libmisc/tests/test_assert_min.c b/libmisc/tests/test_assert_min.c new file mode 100644 index 0000000..9c0394b --- /dev/null +++ b/libmisc/tests/test_assert_min.c @@ -0,0 +1,17 @@ +/* libmisc/tests/test_assert_min.c - Tests for minimal + * + * Copyright (C) 2024 Luke T. Shumaker + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +/* Don't include *anything* else. */ +#include + +static_assert(1 == 1); + +int main() { + assert_msg(1, "foo"); + assert(1); + return 0; + assert_notreached("ret"); +} -- cgit v1.2.3-2-g168b