diff options
Diffstat (limited to 'stdalign.c')
-rw-r--r-- | stdalign.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/stdalign.c b/stdalign.c new file mode 100644 index 0000000..9fd58bc --- /dev/null +++ b/stdalign.c @@ -0,0 +1,22 @@ +#if defined __STDC_VERSION__ && 201112L <= __STDC_VERSION__ +#include <stdalign.h> +#include "test.h" + +void test_stdalign_h(void) +{ + testing_header("stdalign.h"); + + /* alignas() */ + /* alignof() */ + + test_defined(__alignas_is_defined); + test_defined(__alignof_is_defined); + + testing_end(); +} + +#else +void test_stdalign_h(void) +{ +} +#endif |