aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/endian-little.c
blob: 57ef69866eeebb1a272a30fddc3663a1786a666d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#if defined(__BIG_ENDIAN__)
#error "__BIG_ENDIAN__ defined!"
#endif
#if (__LITTLE_ENDIAN__ != 1)
#error "__LITTLE_ENDIAN__ not correctly defined!"
#endif
#if (__BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__)
#error "__BYTE_ORDER__ not correctly defined!"
#endif

/*
 * check-name: endian-little.c
 * check-command: sparse -mlittle-endian $file
 */