From df9ef3a48883d4a34eeabbfd5af42f289c1353c2 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 1 Mar 2019 19:45:11 -0500 Subject: basic tests for stdbool.h and stddef.h --- stdbool.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 stdbool.c (limited to 'stdbool.c') diff --git a/stdbool.c b/stdbool.c new file mode 100644 index 0000000..bb43b55 --- /dev/null +++ b/stdbool.c @@ -0,0 +1,22 @@ +#if defined __STDC_VERSION__ && 199901L <= __STDC_VERSION__ +#include +#include "test.h" + +static bool b; + +void test_stdbool_h(void) +{ + testing_header("stdbool.h"); + + test_true(true); + test_false(false); + test_true(__bool_true_false_are_defined); + + testing_end(); +} + +#else +void test_stdbool_h(void) +{ +} +#endif -- cgit v1.2.1