xref: /freebsd/contrib/mandoc/test-be32toh.c (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 #ifdef SYS_ENDIAN
2 #include <sys/endian.h>
3 #else
4 #include <endian.h>
5 #endif
6 
7 int
8 main(void)
9 {
10 	return htobe32(be32toh(0x3a7d0cdb)) != 0x3a7d0cdb;
11 }
12