summaryrefslogtreecommitdiff
path: root/tests/headers/iso646.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-15 14:42:29 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-15 14:42:29 +0100
commit7cd3b7caee10d62f7be674afb86a136bf30485d6 (patch)
tree121a8c79114174b765713387187d930b102f760f /tests/headers/iso646.c
parent3b3325f761b09ebbfef04c44eed546cc4fdeb329 (diff)
Add mqueue rt api, add header tests
Diffstat (limited to 'tests/headers/iso646.c')
-rw-r--r--tests/headers/iso646.c23
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), "^=");
+}