diff --git a/src/tests/htonl.c b/src/tests/htonl.c
new file mode 100644
index 0000000000000000000000000000000000000000..ff16476eded2f45b32e881b8a312836e81d3b8f4
--- /dev/null
+++ b/src/tests/htonl.c
@@ -0,0 +1,15 @@
+#include "test.h"
+
+
+
+int test_main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__unused__))) {
+  uint32_t h,n;
+
+    parse_args(argc, argv);
+
+    for (h = 0; h<4; h++) {
+      n = htonl(h);
+      printf("h = %d, n = %d\n", h,n);
+    }
+    return 0;
+}