diff options
author | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-12-15 10:02:46 +1100 |
---|---|---|
committer | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-02-09 13:40:15 +1100 |
commit | 9239994cdedfc5dd70e3c5d27ea92754674aaa1f (patch) | |
tree | c26394bdc295a91f3f8bd6d4d0c8b57cb2fcbad1 /lib/ccan/endian/test/compile_ok-constant.c | |
parent | 9133420a3092b9d6ba44fdc4346e1b7027a5c3ac (diff) | |
download | talos-petitboot-9239994cdedfc5dd70e3c5d27ea92754674aaa1f.tar.gz talos-petitboot-9239994cdedfc5dd70e3c5d27ea92754674aaa1f.zip |
lib: Add CCAN headers for endian helpers
Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib/ccan/endian/test/compile_ok-constant.c')
-rw-r--r-- | lib/ccan/endian/test/compile_ok-constant.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/ccan/endian/test/compile_ok-constant.c b/lib/ccan/endian/test/compile_ok-constant.c new file mode 100644 index 0000000..1aef1dd --- /dev/null +++ b/lib/ccan/endian/test/compile_ok-constant.c @@ -0,0 +1,12 @@ +#include <ccan/endian/endian.h> + +struct foo { + char one[BSWAP_16(0xFF00)]; + char two[BSWAP_32(0xFF000000)]; + char three[BSWAP_64(0xFF00000000000000ULL)]; +}; + +int main(void) +{ + return 0; +} |