/* * libbinrec: a recompiling translator for machine code * Copyright (c) 2016 Andrew Church * * This software may be copied and redistributed under certain conditions; * see the file "COPYING" in the source code distribution for details. * NO WARRANTY is provided with this software. */ #define SUPPRESS_ENDIAN_INTRINSICS #include "src/endian.h" #include "tests/common.h" int main(int argc, char **argv) { EXPECT_EQ(bswap32(0x12345678), 0x78563412); volatile uint32_t test = 0x12345678; EXPECT_EQ(bswap32(test), 0x78563412); return EXIT_SUCCESS; }