summaryrefslogtreecommitdiff
path: root/tests/headers/endian.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-25 19:24:38 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-25 20:35:03 +0100
commita984eb367c032dbe2577f01238c3d1268526be70 (patch)
tree437fef40379b2758b129ccea39df3570fa2d145e /tests/headers/endian.c
parent8834571b202cf4dc9c649cfb096c213b6ecf1566 (diff)
Clang-tidy fixes
Diffstat (limited to 'tests/headers/endian.c')
-rw-r--r--tests/headers/endian.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/headers/endian.c b/tests/headers/endian.c
deleted file mode 100644
index db18c5fc..00000000
--- a/tests/headers/endian.c
+++ /dev/null
@@ -1,32 +0,0 @@
-// https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/endian.h.html
-
-#include "core.h"
-
-#include <endian.h>
-
-TEST(endian_h)
-{
- MACRO(BYTE_ORDER);
- MACRO(LITTLE_ENDIAN);
- MACRO(BIG_ENDIAN);
-
- FUNCTION(be16toh, FN(uint16_t, uint16_t));
- FUNCTION(be32toh, FN(uint32_t, uint32_t));
- FUNCTION(be64toh, FN(uint64_t, uint64_t));
-
- FUNCTION(htobe16, FN(uint16_t, uint16_t));
- FUNCTION(htobe32, FN(uint32_t, uint32_t));
- FUNCTION(htobe64, FN(uint64_t, uint64_t));
-
- FUNCTION(htole16, FN(uint16_t, uint16_t));
- FUNCTION(htole32, FN(uint32_t, uint32_t));
- FUNCTION(htole64, FN(uint64_t, uint64_t));
-
- FUNCTION(le16toh, FN(uint16_t, uint16_t));
- FUNCTION(le32toh, FN(uint32_t, uint32_t));
- FUNCTION(le64toh, FN(uint64_t, uint64_t));
-
- TYPE(uint16_t);
- TYPE(uint32_t);
- TYPE(uint64_t);
-}