endian: add constant versions.
[ccan] / ccan / endian / test / compile_ok-constant.c
1 #include <ccan/endian/endian.h>
2
3 struct foo {
4         char one[BSWAP_16_CONST(0xFF00)];
5         char two[BSWAP_32_CONST(0xFF000000)];
6         char three[BSWAP_64_CONST(0xFF00000000000000ULL)];
7 };
8
9 int main(void)
10 {
11         return 0;
12 }