diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 14:42:29 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 14:42:29 +0100 |
| commit | 7cd3b7caee10d62f7be674afb86a136bf30485d6 (patch) | |
| tree | 121a8c79114174b765713387187d930b102f760f /tests/headers/iso646.c | |
| parent | 3b3325f761b09ebbfef04c44eed546cc4fdeb329 (diff) | |
Add mqueue rt api, add header tests
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), "^="); +} |
