summaryrefslogtreecommitdiff
path: root/test-ntohl.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2017-01-21 13:01:39 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2017-01-21 13:01:39 +0000
commitef7476572c9a18c0cb4d5dbaf3a81f1628419abb (patch)
tree0358496ea53f35b6dc31f8a296a2021c99db1b89 /test-ntohl.c
parent05798824d24a3b26ef3439303ad694202c75729e (diff)
Notes
Diffstat (limited to 'test-ntohl.c')
-rw-r--r--test-ntohl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-ntohl.c b/test-ntohl.c
new file mode 100644
index 0000000000000..52dcc256ff562
--- /dev/null
+++ b/test-ntohl.c
@@ -0,0 +1,7 @@
+#include <arpa/inet.h>
+
+int
+main(void)
+{
+ return htonl(ntohl(0x3a7d0cdb)) != 0x3a7d0cdb;
+}