summaryrefslogtreecommitdiff
path: root/tests/headers/endian.c
diff options
context:
space:
mode:
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);
-}