diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-02-17 00:21:48 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-02-17 22:29:50 +0100 |
commit | a141c401f78467bc15f62882fca5d55a007cacbb (patch) | |
tree | 908ac71a8640f78f45d22c6808c5fa6e373000fa /asl/base/integers_tests.cpp | |
parent | cb77cbe9ce4cddad6a460aa190ff70f0c13e4703 (diff) |
Reorganize everything
Diffstat (limited to 'asl/base/integers_tests.cpp')
-rw-r--r-- | asl/base/integers_tests.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/asl/base/integers_tests.cpp b/asl/base/integers_tests.cpp new file mode 100644 index 0000000..52feb85 --- /dev/null +++ b/asl/base/integers_tests.cpp @@ -0,0 +1,15 @@ +#include "asl/base/integers.hpp" + +static_assert(sizeof(int8_t) == 1); +static_assert(sizeof(int16_t) == 2); +static_assert(sizeof(int32_t) == 4); +static_assert(sizeof(int64_t) == 8); + +static_assert(sizeof(uint8_t) == 1); +static_assert(sizeof(uint16_t) == 2); +static_assert(sizeof(uint32_t) == 4); +static_assert(sizeof(uint64_t) == 8); + +static_assert(sizeof(asl::byte) == 1); + +static_assert(sizeof(uintptr_t) == sizeof(void*)); |