diff options
Diffstat (limited to 'tests/headers/iso646.c')
| -rw-r--r-- | tests/headers/iso646.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/headers/iso646.c b/tests/headers/iso646.c new file mode 100644 index 00000000..258b8fcc --- /dev/null +++ b/tests/headers/iso646.c @@ -0,0 +1,23 @@ +// https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/iso646.h.html + +#include "core.h" + +#include <iso646.h> + +#define STRINGIFY_(x) #x +#define STRINGIFY(x) STRINGIFY_(x) + +TEST(iso646_h) +{ + MACRO_VALUE_STRING(STRINGIFY(and), "&&"); + MACRO_VALUE_STRING(STRINGIFY(and_eq), "&="); + MACRO_VALUE_STRING(STRINGIFY(bitand), "&"); + MACRO_VALUE_STRING(STRINGIFY(bitor), "|"); + MACRO_VALUE_STRING(STRINGIFY(compl), "~"); + MACRO_VALUE_STRING(STRINGIFY(not), "!"); + MACRO_VALUE_STRING(STRINGIFY(not_eq), "!="); + MACRO_VALUE_STRING(STRINGIFY(or), "||"); + MACRO_VALUE_STRING(STRINGIFY(or_eq), "|="); + MACRO_VALUE_STRING(STRINGIFY(xor), "^"); + MACRO_VALUE_STRING(STRINGIFY(xor_eq), "^="); +} |
