aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-be32toh.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-be32toh.c')
-rw-r--r--test-be32toh.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-be32toh.c b/test-be32toh.c
new file mode 100644
index 00000000..471e85ea
--- /dev/null
+++ b/test-be32toh.c
@@ -0,0 +1,11 @@
+#ifdef SYS_ENDIAN
+#include <sys/endian.h>
+#else
+#include <endian.h>
+#endif
+
+int
+main(void)
+{
+ return htobe32(be32toh(0x3a7d0cdb)) != 0x3a7d0cdb;
+}