diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-07-30 00:18:28 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-07-30 00:18:28 +0200 |
commit | 4e3fd3eac50d3685a7771b570741f2922c4e3693 (patch) | |
tree | 4417153cd454a1f09a8fbf7c3329819b50734c40 /asl/base/integers_tests.cpp |
Initial commit
Diffstat (limited to 'asl/base/integers_tests.cpp')
-rw-r--r-- | asl/base/integers_tests.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/asl/base/integers_tests.cpp b/asl/base/integers_tests.cpp new file mode 100644 index 0000000..587556d --- /dev/null +++ b/asl/base/integers_tests.cpp @@ -0,0 +1,13 @@ +#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);
+
+int main() { return 0; }
|