diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-03-01 19:45:11 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-03-01 19:45:11 -0500 |
commit | df9ef3a48883d4a34eeabbfd5af42f289c1353c2 (patch) | |
tree | 64c86cb73063a3d315de7c3c94b508ce1679e8ef /stddef.c | |
parent | 8396c02590a6a0d34d0ba667c5e5cff4860d1ebc (diff) |
basic tests for stdbool.h and stddef.h
Diffstat (limited to 'stddef.c')
-rw-r--r-- | stddef.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/stddef.c b/stddef.c new file mode 100644 index 0000000..069225e --- /dev/null +++ b/stddef.c @@ -0,0 +1,24 @@ +#include <stddef.h> +#include "test.h" + +static ptrdiff_t ptrdiff; +static size_t size; +static wchar_t wchar; + +void test_stddef_h(void) +{ + struct s { + char a; + char b; + }; + + testing_header("stddef.h"); + + test_true(NULL == 0); + + /* + test_int_eq(offsetof(struct s, b), 1); + */ + + testing_end(); +} |