diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-21 23:50:09 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-26 18:21:45 -0700 |
commit | 3756c77e536a293fc735726eac0e5f0c3a8b89da (patch) | |
tree | f45a37d17a489545222e814197af74d97afced70 /libmisc/tests/test_assert_min.c | |
parent | d0e9e9c4a178fe396f3ba255bc440a15b107a097 (diff) |
libmisc: Check that assert.h has no deps
Diffstat (limited to 'libmisc/tests/test_assert_min.c')
-rw-r--r-- | libmisc/tests/test_assert_min.c | 17 |
1 files changed, 17 insertions, 0 deletions
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 <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"); +} |