aboutsummaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.cpp')
-rw-r--r--tests/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index 4b6c7a7..e879e6a 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -15,6 +15,15 @@ struct TestStruct
int main()
{
+#if BYTE_ORDER == BIG_ENDIAN
+ const char *endianessStr = "big";
+#elif BYTE_ORDER == LITTLE_ENDIAN
+ const char *endianessStr = "little";
+#else
+ const char *endianessStr = "Unknown";
+#endif
+ printf("System endianess: %s\n", endianessStr);
+
TestStruct expectedTestStruct;
expectedTestStruct.a = 0x38956326;
expectedTestStruct.b = 0x34;