summaryrefslogtreecommitdiffstats
path: root/test-be32toh.c
blob: 471e85ea5e43534cda5de6051858c482b1b45c59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#ifdef SYS_ENDIAN
#include <sys/endian.h>
#else
#include <endian.h>
#endif

int
main(void)
{
	return htobe32(be32toh(0x3a7d0cdb)) != 0x3a7d0cdb;
}