From 7cd3b7caee10d62f7be674afb86a136bf30485d6 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 15 Dec 2025 14:42:29 +0100 Subject: Add mqueue rt api, add header tests --- tests/headers/iso646.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/headers/iso646.c (limited to 'tests/headers/iso646.c') 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 + +#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), "^="); +} -- cgit v1.2.3